-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcontract.json
More file actions
97 lines (97 loc) · 2.07 KB
/
Copy pathcontract.json
File metadata and controls
97 lines (97 loc) · 2.07 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"schemaVersion": "1",
"targetFamily": "mongo",
"target": "mongo",
"storageHash": "sha256:48856eceb7cdcd14bb744daba01f8c089d9f1ff7d3e440094f5930b063687867",
"profileHash": "sha256:0b8d49abdbb2759f038452a3b819f0a7db079ffd738c6427562a52064c5327ba",
"roots": {
"posts": "Post",
"users": "User"
},
"models": {
"Post": {
"fields": {
"_id": {
"codecId": "mongo/objectId@1"
},
"authorId": {
"codecId": "mongo/objectId@1"
},
"content": {
"codecId": "mongo/string@1"
},
"createdAt": {
"codecId": "mongo/date@1"
},
"title": {
"codecId": "mongo/string@1"
}
},
"relations": {
"author": {
"cardinality": "N:1",
"on": {
"localFields": [
"authorId"
],
"targetFields": [
"_id"
]
},
"to": "User"
}
},
"storage": {
"collection": "posts"
}
},
"User": {
"fields": {
"_id": {
"codecId": "mongo/objectId@1"
},
"bio": {
"codecId": "mongo/string@1",
"nullable": true
},
"email": {
"codecId": "mongo/string@1"
},
"name": {
"codecId": "mongo/string@1"
}
},
"relations": {
"posts": {
"cardinality": "1:N",
"on": {
"localFields": [
"_id"
],
"targetFields": [
"authorId"
]
},
"to": "Post"
}
},
"storage": {
"collection": "users"
}
}
},
"storage": {
"collections": {
"posts": {},
"users": {}
}
},
"capabilities": {},
"extensionPacks": {},
"meta": {},
"_generated": {
"warning": "⚠️ GENERATED FILE - DO NOT EDIT",
"message": "This file is automatically generated by \"prisma-next contract emit\".",
"regenerate": "To regenerate, run: prisma-next contract emit"
}
}