This commit is contained in:
UltraLionFr
2025-08-20 17:42:45 +02:00
parent 673119679e
commit c8a473a572
13 changed files with 10 additions and 62 deletions
BIN
View File
Binary file not shown.
@@ -1,12 +0,0 @@
-- CreateTable
CREATE TABLE "Paste" (
"id" TEXT NOT NULL PRIMARY KEY,
"title" TEXT,
"content" TEXT NOT NULL,
"password" TEXT,
"maxViews" INTEGER,
"views" INTEGER NOT NULL DEFAULT 0,
"size" INTEGER,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"createdBy" TEXT
);
-3
View File
@@ -1,3 +0,0 @@
# Please do not edit this file manually
# It should be added in your version-control system (e.g., Git)
provider = "sqlite"
+5 -6
View File
@@ -3,8 +3,8 @@ generator client {
}
datasource db {
provider = "sqlite"
url = "file:./altbin.db"
provider = "postgresql"
url = env("DATABASE_URL")
}
model Paste {
@@ -17,12 +17,11 @@ model Paste {
size Int?
createdAt DateTime @default(now())
createdBy String?
dummyId String?
dummy Dummy? @relation(fields: [dummyId], references: [id])
dummyId String?
dummy Dummy? @relation(fields: [dummyId], references: [id])
}
model Dummy {
id String @id @default(cuid())
pastes Paste[]
}
}