basic firebase notification sending + token registration logic

This commit is contained in:
2026-01-13 14:43:36 +01:00
parent ba642d10a5
commit bef418d77d
9 changed files with 173 additions and 14 deletions
@@ -0,0 +1,25 @@
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(nullable = false, unique = true)
private Long userId;
@Column(nullable = false)
@Enumerated(EnumType.STRING)
private NotificationProvider provider;
@Column(nullable = false, unique = true, length = 512)
private String token;
}