Push notifications

This commit is contained in:
2023-12-18 12:19:09 +00:00
parent d087850f69
commit 053d34cde7
19 changed files with 1175 additions and 4 deletions

View File

@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
namespace NostrStreamer.Database;
public class PushSubscription
{
public Guid Id { get; init; } = Guid.NewGuid();
public DateTime Created { get; init; } = DateTime.UtcNow;
public DateTime LastUsed { get; init; } = DateTime.UtcNow;
[MaxLength(64)]
public string Pubkey { get; init; } = null!;
public string Endpoint { get; init; } = null!;
public string Key { get; init; } = null!;
public string Auth { get; init; } = null!;
public string Scope { get; init; } = null!;
}