mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-09-11 15:26:19 +03:00
25 lines
587 B
Plaintext
25 lines
587 B
Plaintext
datasource db {
|
|
provider = "postgresql"
|
|
// Wasp requires that the url is set to the DATABASE_URL environment variable.
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
// Wasp requires the `prisma-client-js` generator to be present.
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
model User {
|
|
id Int @id @default(autoincrement())
|
|
address 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
|
|
}
|