namespace NostrStreamer.Database; /// /// Single use stream keys /// public class UserStreamKey { public Guid Id { get; init; } = Guid.NewGuid(); public string UserPubkey { get; init; } = null!; public User User { get; init; } = null!; public string Key { get; init; } = null!; public DateTime Created { get; init; } = DateTime.UtcNow; /// /// Expiry of the key when it can no longer be used /// public DateTime? Expires { get; init; } public Guid StreamId { get; init; } public UserStream UserStream { get; init; } = null!; }