1{
2 "schemaVersion": "1",
3 "targetFamily": "sql",
4 "target": "postgres",
5 "profileHash": "sha256:1a8dbe044289f30a1de958fe800cc5a8378b285d2e126a8c44b58864bac2c18e",
6 "roots": {
7 "post": "Post",
8 "user": "User"
9 },
10 "models": {
11 "Post": {
12 "fields": {
13 "createdAt": {
14 "nullable": false,
15 "type": {
16 "codecId": "pg/timestamptz@1",
17 "kind": "scalar"
18 }
19 },
20 "excerpt": {
21 "nullable": false,
22 "type": {
23 "codecId": "pg/text@1",
24 "kind": "scalar"
25 }
26 },
27 "id": {
28 "nullable": false,
29 "type": {
30 "codecId": "sql/char@1",
31 "kind": "scalar",
32 "typeParams": {
33 "length": 36
34 }
35 }
36 },
37 "title": {
38 "nullable": false,
39 "type": {
40 "codecId": "pg/text@1",
41 "kind": "scalar"
42 }
43 },
44 "userId": {
45 "nullable": false,
46 "type": {
47 "codecId": "pg/text@1",
48 "kind": "scalar"
49 }
50 }
51 },
52 "relations": {
53 "user": {
54 "cardinality": "N:1",
55 "on": {
56 "localFields": ["userId"],
57 "targetFields": ["id"]
58 },
59 "to": "User"
60 }
61 },
62 "storage": {
63 "fields": {
64 "createdAt": {
65 "column": "createdAt"
66 },
67 "excerpt": {
68 "column": "excerpt"
69 },
70 "id": {
71 "column": "id"
72 },
73 "title": {
74 "column": "title"
75 },
76 "userId": {
77 "column": "userId"
78 }
79 },
80 "table": "post"
81 }
82 },
83 "User": {
84 "fields": {
85 "createdAt": {
86 "nullable": false,
87 "type": {
88 "codecId": "pg/timestamptz@1",
89 "kind": "scalar"
90 }
91 },
92 "email": {
93 "nullable": false,
94 "type": {
95 "codecId": "pg/text@1",
96 "kind": "scalar"
97 }
98 },
99 "id": {
100 "nullable": false,
101 "type": {
102 "codecId": "sql/char@1",
103 "kind": "scalar",
104 "typeParams": {
105 "length": 36
106 }
107 }
108 },
109 "name": {
110 "nullable": false,
111 "type": {
112 "codecId": "pg/text@1",
113 "kind": "scalar"
114 }
115 }
116 },
117 "relations": {
118 "posts": {
119 "cardinality": "1:N",
120 "on": {
121 "localFields": ["id"],
122 "targetFields": ["userId"]
123 },
124 "to": "Post"
125 }
126 },
127 "storage": {
128 "fields": {
129 "createdAt": {
130 "column": "createdAt"
131 },
132 "email": {
133 "column": "email"
134 },
135 "id": {
136 "column": "id"
137 },
138 "name": {
139 "column": "name"
140 }
141 },
142 "table": "user"
143 }
144 }
145 },
146 "storage": {
147 "storageHash": "sha256:ae5cf43e83687e08354eb6afa512ad5834d96164612280b204c5b7103b01e8e1",
148 "tables": {
149 "post": {
150 "columns": {
151 "createdAt": {
152 "codecId": "pg/timestamptz@1",
153 "default": {
154 "expression": "now()",
155 "kind": "function"
156 },
157 "nativeType": "timestamptz",
158 "nullable": false
159 },
160 "excerpt": {
161 "codecId": "pg/text@1",
162 "nativeType": "text",
163 "nullable": false
164 },
165 "id": {
166 "codecId": "sql/char@1",
167 "nativeType": "character",
168 "nullable": false,
169 "typeParams": {
170 "length": 36
171 }
172 },
173 "title": {
174 "codecId": "pg/text@1",
175 "nativeType": "text",
176 "nullable": false
177 },
178 "userId": {
179 "codecId": "pg/text@1",
180 "nativeType": "text",
181 "nullable": false
182 }
183 },
184 "foreignKeys": [
185 {
186 "columns": ["userId"],
187 "constraint": true,
188 "index": true,
189 "references": {
190 "columns": ["id"],
191 "table": "user"
192 }
193 }
194 ],
195 "indexes": [],
196 "primaryKey": {
197 "columns": ["id"]
198 },
199 "uniques": []
200 },
201 "user": {
202 "columns": {
203 "createdAt": {
204 "codecId": "pg/timestamptz@1",
205 "default": {
206 "expression": "now()",
207 "kind": "function"
208 },
209 "nativeType": "timestamptz",
210 "nullable": false
211 },
212 "email": {
213 "codecId": "pg/text@1",
214 "nativeType": "text",
215 "nullable": false
216 },
217 "id": {
218 "codecId": "sql/char@1",
219 "nativeType": "character",
220 "nullable": false,
221 "typeParams": {
222 "length": 36
223 }
224 },
225 "name": {
226 "codecId": "pg/text@1",
227 "nativeType": "text",
228 "nullable": false
229 }
230 },
231 "foreignKeys": [],
232 "indexes": [],
233 "primaryKey": {
234 "columns": ["id"]
235 },
236 "uniques": []
237 }
238 }
239 },
240 "execution": {
241 "executionHash": "sha256:8c5eef43d2153fd832b8288ed2d8ffc9f5afb62908f8b4b7e6a4b7018444c41f",
242 "mutations": {
243 "defaults": [
244 {
245 "onCreate": {
246 "id": "uuidv4",
247 "kind": "generator"
248 },
249 "ref": {
250 "column": "id",
251 "table": "post"
252 }
253 },
254 {
255 "onCreate": {
256 "id": "uuidv4",
257 "kind": "generator"
258 },
259 "ref": {
260 "column": "id",
261 "table": "user"
262 }
263 }
264 ]
265 }
266 },
267 "capabilities": {
268 "postgres": {
269 "jsonAgg": true,
270 "lateral": true,
271 "limit": true,
272 "orderBy": true,
273 "returning": true
274 },
275 "sql": {
276 "defaultInInsert": true,
277 "enums": true,
278 "returning": true
279 }
280 },
281 "extensionPacks": {},
282 "meta": {},
283 "_generated": {
284 "warning": "⚠️ GENERATED FILE - DO NOT EDIT",
285 "message": "This file is automatically generated by \"prisma-next contract emit\".",
286 "regenerate": "To regenerate, run: prisma-next contract emit"
287 }
288}