Update code
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
-- 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
|
||||
);
|
||||
@@ -0,0 +1,3 @@
|
||||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (e.g., Git)
|
||||
provider = "sqlite"
|
||||
@@ -0,0 +1,28 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "sqlite"
|
||||
url = "file:./altbin.db"
|
||||
}
|
||||
|
||||
model Paste {
|
||||
id String @id @default(cuid())
|
||||
title String?
|
||||
content String
|
||||
password String?
|
||||
maxViews Int?
|
||||
views Int @default(0)
|
||||
size Int?
|
||||
createdAt DateTime @default(now())
|
||||
createdBy String?
|
||||
|
||||
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