API Updates
Deploy / deploy (push) Successful in 3m3s

This commit is contained in:
twotalesanimation
2026-07-08 14:38:56 +02:00
parent d40ca8eb55
commit afcef02409
9 changed files with 399 additions and 4 deletions
@@ -0,0 +1,13 @@
-- CreateTable
CREATE TABLE "display_events" (
"id" SERIAL NOT NULL,
"type" TEXT NOT NULL,
"shotCode" TEXT NOT NULL,
"by" TEXT NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "display_events_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE INDEX "display_events_createdAt_idx" ON "display_events"("createdAt");
+12
View File
@@ -557,3 +557,15 @@ model SystemConfig {
@@map("system_config")
}
/// Physical display event log — polled by ESP32 dot-matrix display
model DisplayEvent {
id Int @id @default(autoincrement())
type String // APPROVED | CHANGES | COMMENT | REJECTED
shotCode String
by String // actor name (reviewer / commenter)
createdAt DateTime @default(now())
@@index([createdAt])
@@map("display_events")
}