2026-01-02 12:25:44 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Entity;
|
|
|
|
|
|
|
2026-01-04 16:59:34 +08:00
|
|
|
|
public class PushSubscription : BaseEntity
|
2026-01-02 12:25:44 +08:00
|
|
|
|
{
|
|
|
|
|
|
[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
|
2026-01-18 22:04:56 +08:00
|
|
|
|
|
2026-01-02 12:25:44 +08:00
|
|
|
|
public string? UserAgent { get; set; }
|
|
|
|
|
|
}
|