18 lines
401 B
C#
18 lines
401 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Entity;
|
|
|
|
public class PushSubscription : BaseEntity
|
|
{
|
|
[Required]
|
|
public string Endpoint { get; set; } = string.Empty;
|
|
|
|
public string? P256DH { get; set; }
|
|
|
|
public string? Auth { get; set; }
|
|
|
|
public string? UserId { get; set; } // Optional: if you have user authentication
|
|
|
|
public string? UserAgent { get; set; }
|
|
}
|