event subscriptions

This commit is contained in:
toni
2026-03-15 15:39:45 +01:00
parent 29c6828dd1
commit 2620538a2c
26 changed files with 1028 additions and 214 deletions
+3
View File
@@ -34,6 +34,7 @@ model session {
enum Topic {
TEST
EVENTS
}
model FoundEvents {
@@ -49,6 +50,7 @@ model FoundEvents {
model FoundEventAttachments {
id String @id @default(dbgenerated("uuidv7()")) @db.Uuid
title String @db.VarChar
url String @db.VarChar
event FoundEvents @relation(fields: [eventId], references: [id])
eventId String @db.Uuid
@@ -67,6 +69,7 @@ model PushSubscription {
topic Topic
topicConfiguration Json? @db.JsonB
clientId String @db.Uuid
lastNotified DateTime? @db.Date
}
model User {