-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathschema.prisma
47 lines (38 loc) · 1.33 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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/myprisma"
}
model Person {
id String @id @default(cuid())
name String @default("")
priority Priority[] @relation("Priority_person")
nice Nice[] @relation("Nice_person")
from_Naughty_person Naughty[] @relation("Naughty_person")
}
model Priority {
id String @id @default(cuid())
person Person? @relation("Priority_person", fields: [personId], references: [id])
personId String? @map("person")
@@index([personId])
}
model Nice {
id String @id @default(cuid())
person Person? @relation("Nice_person", fields: [personId], references: [id])
personId String? @map("person")
@@index([personId])
}
model Naughty {
id String @id @default(cuid())
person Person? @relation("Naughty_person", fields: [personId], references: [id])
personId String? @map("person")
reason String @default("")
hiddenReason String @default("")
@@index([personId])
}