forked from keystonejs/keystone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.prisma
31 lines (26 loc) · 864 Bytes
/
schema.prisma
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// This file is automatically generated by Keystone, do not modify it manually.
// Modify your Keystone config when you want to change this.
datasource sqlite {
url = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
provider = "sqlite"
}
generator client {
provider = "prisma-client-js"
output = "node_modules/.prisma/client"
}
model Task {
id String @id @default(cuid())
label String @default("")
priority String?
isComplete Boolean @default(false)
assignedTo Person? @relation("Task_assignedTo", fields: [assignedToId], references: [id])
assignedToId String? @map("assignedTo")
finishBy DateTime?
@@index([assignedToId])
}
model Person {
id String @id @default(cuid())
name String @default("")
tasks Task[] @relation("Task_assignedTo")
}