mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-19 15:11:52 +03:00
27 lines
534 B
Plaintext
27 lines
534 B
Plaintext
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = "***"
|
|
}
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
output = "../server/node_modules/.prisma/client"
|
|
}
|
|
|
|
model User {
|
|
id Int @id @default(autoincrement())
|
|
email String @unique
|
|
password String
|
|
tasks Task[]
|
|
}
|
|
|
|
model Task {
|
|
id Int @id @default(autoincrement())
|
|
description String
|
|
isDone Boolean @default(false)
|
|
user User? @relation(fields: [userId], references: [id])
|
|
userId Int?
|
|
}
|
|
|