event subscriptions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `title` to the `FoundEventAttachments` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "FoundEventAttachments" ADD COLUMN "title" VARCHAR NOT NULL;
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
-- AlterEnum
|
||||
ALTER TYPE "Topic" ADD VALUE 'EVENTS';
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "PushSubscription" ADD COLUMN "lastNotified" DATE;
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user