Files
zap-stream-api/NostrStreamer/Database/User.cs
Kieran 7ca87a6181 TOS
Bugfix stream editor
2023-08-01 15:35:11 +01:00

55 lines
1.2 KiB
C#

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>
/// Concurrency token
/// </summary>
public uint Version { get; set; }
public List<Payment> Payments { get; init; } = new();
public List<UserStream> Streams { get; init; } = new();
}