Add a Posts Schema just to test authentication

This commit is contained in:
2024-10-04 09:50:58 +02:00
parent 437e49b842
commit 1a12ed6c9c
23 changed files with 984 additions and 1 deletions

View File

@ -0,0 +1,8 @@
-- CreateTable
CREATE TABLE "Post" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"title" TEXT NOT NULL,
"body" TEXT NOT NULL,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);

View File

@ -52,3 +52,11 @@ model Identity {
@@unique([provider, uid])
@@index(userId)
}
model Post {
id Int @id @default(autoincrement())
title String
body String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}