Update code

This commit is contained in:
UltraLionFr
2025-08-20 14:14:33 +02:00
parent 174cf5ef60
commit 0c1a0d74d7
53 changed files with 3830 additions and 373 deletions
BIN
View File
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
);
+3
View File
@@ -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"
+28
View File
@@ -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[]
}