Add in Pino logging and make UI consistent across the app.

This commit is contained in:
Cameron Redmore 2025-04-25 19:34:17 +01:00
parent 727746030c
commit 300040bd58
19 changed files with 590 additions and 235 deletions

View file

@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "Log" (
"id" SERIAL NOT NULL,
"timestamp" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"level" TEXT NOT NULL,
"message" TEXT NOT NULL,
"meta" JSONB,
CONSTRAINT "Log_pkey" PRIMARY KEY ("id")
);

View file

@ -129,3 +129,11 @@ model Session {
data String
expiresAt DateTime @map("expires_at")
}
model Log {
id Int @id @default(autoincrement())
timestamp DateTime @default(now())
level String
message String
meta Json? // Optional field for additional structured data
}