namespace NostrStreamer.Database; public class User { public string PubKey { get; init; } = null!; /// /// Stream key /// public string StreamKey { get; init; } = null!; /// /// Milli sats balance /// public long Balance { get; set; } /// /// Date when user accepted TOS /// public DateTime? TosAccepted { get; init; } /// /// Concurrency token /// public uint Version { get; set; } /// /// User is service admin /// public bool IsAdmin { get; set; } /// /// User is blocked and cannot stream /// public bool IsBlocked { get; set; } public List Payments { get; init; } = new(); public List Streams { get; init; } = new(); public List Forwards { get; init; } = new(); public List StreamKeys { get; init; } = new(); }