feat: restore default stream details
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-30 12:42:41 +01:00
parent 80d0bbe0f5
commit 3cabc7ac16
11 changed files with 754 additions and 23 deletions

View File

@ -15,11 +15,18 @@ public class UserConfiguration : IEntityTypeConfiguration<User>
.IsRequired();
builder.Property(a => a.TosAccepted);
builder.Property(a => a.Version)
.IsRowVersion();
builder.Property(a => a.IsAdmin);
builder.Property(a => a.IsBlocked);
builder.Property(a => a.Title);
builder.Property(a => a.Summary);
builder.Property(a => a.Image);
builder.Property(a => a.ContentWarning);
builder.Property(a => a.Goal);
builder.Property(a => a.Tags);
}
}
}

View File

@ -34,6 +34,36 @@ public class User
/// </summary>
public bool IsBlocked { get; set; }
/// <summary>
/// Stream title
/// </summary>
public string? Title { get; set; }
/// <summary>
/// Stream summary
/// </summary>
public string? Summary { get; set; }
/// <summary>
/// Stream cover image
/// </summary>
public string? Image { get; set; }
/// <summary>
/// Comma seperated tags
/// </summary>
public string? Tags { get; set; }
/// <summary>
/// Any content warning tag (NIP-36)
/// </summary>
public string? ContentWarning { get; set; }
/// <summary>
/// Stream goal
/// </summary>
public string? Goal { get; set; }
public List<Payment> Payments { get; init; } = new();
public List<UserStream> Streams { get; init; } = new();
public List<UserStreamForwards> Forwards { get; init; } = new();