wasp/waspc/examples/todoApp/migrations/20201016123235-smth/schema.prisma
2020-10-19 14:45:54 +02:00

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
}