prod
This commit is contained in:
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
|
||||
);
|
||||
@@ -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"
|
||||
@@ -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[]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user