mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
Update compose; remove prisma schema
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
// schemas/prisma.schema
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "postgresql" // or "mysql" or "sqlite" depending on your database
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
githubId Int @unique @map("github_id")
|
||||
email String @unique
|
||||
username String
|
||||
sessions Session[]
|
||||
|
||||
@@index([githubId])
|
||||
}
|
||||
|
||||
model Session {
|
||||
id String @id
|
||||
userId Int @map("user_id")
|
||||
expiresAt DateTime @map("expires_at")
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
Reference in New Issue
Block a user