Migrated to Prisma
Migrated to the Prisma ORM. Text TODO: Change code
This commit is contained in:
1 parent
4948946c0d
commit
9aa94638d9
98 files changed
+19930
-3
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
// Get a free hosted Postgres database in seconds: `npx create-db`
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client"
|
||||
output = "../lib/generated/prisma"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "sqlite"
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
email String @unique
|
||||
username String @unique
|
||||
password String
|
||||
role String @default("user")
|
||||
firstname String
|
||||
lastname String?
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user