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