mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-26 18:42:16 +03:00
36 lines
719 B
Plaintext
36 lines
719 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
|
|
}
|
|
|
|
model Project {
|
|
id Int @id @default(autoincrement())
|
|
name String
|
|
|
|
// NOTE(matija): not using relations yet.
|
|
//tasks Task[]
|
|
}
|
|
|
|
model Task {
|
|
id Int @id @default(autoincrement())
|
|
description String
|
|
isDone Boolean @default(false)
|
|
|
|
// NOTE(matija): not using relations yet.
|
|
//project Project @relation(fields: [projectId], references: [id])
|
|
//projectId Int
|
|
}
|
|
|