package SuMoC.backend.notification.models; import SuMoC.backend.notification.enums.NotificationProvider; import jakarta.persistence.*; import lombok.Getter; import lombok.Setter; @Setter @Getter @Entity public class NotificationToken { @Id @Column(name = "user_id", nullable = false, unique = true) private Long userId; @Column(nullable = false) @Enumerated(EnumType.STRING) private NotificationProvider provider; @Column(nullable = false, length = 512) private String token; }