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