initial commit

This commit is contained in:
Soph :3 2024-05-22 11:35:43 +03:00
commit 6f5a39c212
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
47 changed files with 3601 additions and 0 deletions

View file

@ -0,0 +1,43 @@
generator client {
provider = "prisma-client-js"
}
model Upload {
id String @id
expiresAt DateTime
type String
uploadedBy String
}
model User {
id String @id
username String
password String
staff Boolean @default(false)
status String @default("")
passkeys Json[]
sessions Session[]
}
model Punishment {
id String @id
type String // "mute", "ban"
reason String
punishedUserId String
staffId String
time Int
at DateTime
}
model Session {
id String @id
userId String
expiresAt DateTime
user User @relation(references: [id], fields: [userId], onDelete: Cascade)
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}