Account flags
This commit is contained in:
@ -3,47 +3,47 @@ namespace NostrStreamer.Database;
|
||||
public class User
|
||||
{
|
||||
public string PubKey { get; init; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Stream key
|
||||
/// </summary>
|
||||
public string StreamKey { get; init; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Milli sats balance
|
||||
/// </summary>
|
||||
public long Balance { 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>
|
||||
/// Date when user accepted TOS
|
||||
/// </summary>
|
||||
public DateTime? TosAccepted { get; init; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Stream goal
|
||||
/// </summary>
|
||||
@ -53,7 +53,17 @@ public class User
|
||||
/// Concurrency token
|
||||
/// </summary>
|
||||
public uint Version { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// User is service admin
|
||||
/// </summary>
|
||||
public bool IsAdmin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// User is blocked and cannot stream
|
||||
/// </summary>
|
||||
public bool IsBlocked { get; set; }
|
||||
|
||||
public List<Payment> Payments { get; init; } = new();
|
||||
public List<UserStream> Streams { get; init; } = new();
|
||||
public List<UserStreamForwards> Forwards { get; init; } = new();
|
||||
|
Reference in New Issue
Block a user