add demo endpoint for notification mocks
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-13 12:22:44 +01:00
parent f1a214b5db
commit ba642d10a5
13 changed files with 120 additions and 29 deletions
@@ -1,6 +1,7 @@
package SuMoC.backend.notification.models;
import SuMoC.backend.notification.enums.NotificationStatus;
import SuMoC.backend.notification.enums.NotificationType;
import SuMoC.backend.user.models.User;
import jakarta.persistence.*;
import lombok.*;
@@ -25,7 +26,10 @@ public class Notification {
private User user;
@Column(nullable = false)
private String message;
private NotificationType type;
@Column(columnDefinition = "TEXT")
private String data; // Store serialized DTO as JSON
/**
* Time of day from which on a notification might be sent.