main
json 195 lines 5.75 KB
Raw
1 {
2 "_generated": {
3 "message": "This file is automatically generated by \"prisma contract emit\".",
4 "regenerate": "To regenerate, run: prisma contract emit",
5 "warning": "⚠️ GENERATED FILE - DO NOT EDIT"
6 },
7 "capabilities": {
8 "postgres": {
9 "distinctOn": true,
10 "jsonAgg": true,
11 "lateral": true,
12 "limit": true,
13 "orderBy": true,
14 "returning": true
15 },
16 "sql": {
17 "checkConstraint": true,
18 "defaultInInsert": true,
19 "enums": true,
20 "lateral": true,
21 "returning": true,
22 "scalarList": true
23 }
24 },
25 "domain": {
26 "namespaces": {
27 "public": {
28 "models": {
29 "Post": {
30 "fields": {
31 "authorId": {
32 "nullable": false,
33 "type": { "codecId": "pg/uuid@1", "kind": "scalar" }
34 },
35 "id": {
36 "nullable": false,
37 "type": { "codecId": "pg/uuid@1", "kind": "scalar" }
38 },
39 "title": {
40 "nullable": false,
41 "type": { "codecId": "pg/text@1", "kind": "scalar" }
42 }
43 },
44 "relations": {
45 "author": {
46 "cardinality": "N:1",
47 "on": { "localFields": ["authorId"], "targetFields": ["id"] },
48 "to": { "model": "User", "namespace": "public" }
49 }
50 },
51 "storage": {
52 "fields": {
53 "authorId": { "column": "authorId" },
54 "id": { "column": "id" },
55 "title": { "column": "title" }
56 },
57 "namespaceId": "public",
58 "table": "Post"
59 }
60 },
61 "User": {
62 "fields": {
63 "createdAt": {
64 "nullable": false,
65 "type": {
66 "codecId": "pg/timestamptz-string@1",
67 "kind": "scalar"
68 }
69 },
70 "email": {
71 "nullable": false,
72 "type": { "codecId": "pg/text@1", "kind": "scalar" }
73 },
74 "id": {
75 "nullable": false,
76 "type": { "codecId": "pg/uuid@1", "kind": "scalar" }
77 },
78 "name": {
79 "nullable": false,
80 "type": { "codecId": "pg/text@1", "kind": "scalar" }
81 }
82 },
83 "relations": {
84 "posts": {
85 "cardinality": "1:N",
86 "on": { "localFields": ["id"], "targetFields": ["authorId"] },
87 "to": { "model": "Post", "namespace": "public" }
88 }
89 },
90 "storage": {
91 "fields": {
92 "createdAt": { "column": "createdAt" },
93 "email": { "column": "email" },
94 "id": { "column": "id" },
95 "name": { "column": "name" }
96 },
97 "namespaceId": "public",
98 "table": "User"
99 }
100 }
101 }
102 }
103 }
104 },
105 "execution": {
106 "executionHash": "3d1e5ef7d0bf68e99ed01f74317c9cb4403c9f0235bcb38e447cfe4595460215",
107 "mutations": {
108 "defaults": [
109 {
110 "onCreate": { "id": "uuidv7", "kind": "generator" },
111 "ref": { "column": "id", "namespace": "public", "table": "Post" }
112 },
113 {
114 "onCreate": { "id": "uuidv7", "kind": "generator" },
115 "ref": { "column": "id", "namespace": "public", "table": "User" }
116 }
117 ]
118 }
119 },
120 "extensions": {},
121 "meta": {},
122 "profileHash": "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
123 "roots": {
124 "Post": { "model": "Post", "namespace": "public" },
125 "User": { "model": "User", "namespace": "public" }
126 },
127 "schemaVersion": "1",
128 "storage": {
129 "namespaces": {
130 "public": {
131 "entries": {
132 "table": {
133 "Post": {
134 "columns": {
135 "authorId": {
136 "codecId": "pg/uuid@1",
137 "nativeType": "uuid",
138 "nullable": false
139 },
140 "id": {
141 "codecId": "pg/uuid@1",
142 "nativeType": "uuid",
143 "nullable": false
144 },
145 "title": {
146 "codecId": "pg/text@1",
147 "nativeType": "text",
148 "nullable": false
149 }
150 },
151 "foreignKeys": [],
152 "indexes": [],
153 "primaryKey": { "columns": ["id"] },
154 "uniques": []
155 },
156 "User": {
157 "columns": {
158 "createdAt": {
159 "codecId": "pg/timestamptz-string@1",
160 "default": { "expression": "now()", "kind": "function" },
161 "nativeType": "timestamptz",
162 "nullable": false
163 },
164 "email": {
165 "codecId": "pg/text@1",
166 "nativeType": "text",
167 "nullable": false
168 },
169 "id": {
170 "codecId": "pg/uuid@1",
171 "nativeType": "uuid",
172 "nullable": false
173 },
174 "name": {
175 "codecId": "pg/text@1",
176 "nativeType": "text",
177 "nullable": false
178 }
179 },
180 "foreignKeys": [],
181 "indexes": [],
182 "primaryKey": { "columns": ["id"] },
183 "uniques": [{ "columns": ["email"] }]
184 }
185 }
186 },
187 "id": "public",
188 "kind": "postgres-schema"
189 }
190 },
191 "storageHash": "7de60ab4aee8baa42480f8a2d3559ff4027deae801de73c6a93c9eeb4170f558"
192 },
193 "target": "postgres",
194 "targetFamily": "sql"
195 }