wip event list item

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-15 00:35:13 +01:00
parent a1d5104166
commit f6c6a403b4
6 changed files with 277 additions and 56 deletions

View File

@@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "event_meta" (
"id" UUID NOT NULL DEFAULT gen_random_uuid(),
"name" TEXT NOT NULL,
"conversion" BOOLEAN NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "event_meta_pkey" PRIMARY KEY ("id")
);

View File

@@ -165,3 +165,13 @@ model ShareOverview {
@@map("shares")
}
model EventMeta {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
name String
conversion Boolean
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
@@map("event_meta")
}