| 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 | "nullable": false, |
| 48 | "on": { "localFields": ["authorId"], "targetFields": ["id"] }, |
| 49 | "to": { "model": "User", "namespace": "public" } |
| 50 | } |
| 51 | }, |
| 52 | "storage": { |
| 53 | "fields": { |
| 54 | "authorId": { "column": "authorId" }, |
| 55 | "id": { "column": "id" }, |
| 56 | "title": { "column": "title" } |
| 57 | }, |
| 58 | "namespaceId": "public", |
| 59 | "table": "post" |
| 60 | } |
| 61 | }, |
| 62 | "User": { |
| 63 | "fields": { |
| 64 | "createdAt": { |
| 65 | "nullable": false, |
| 66 | "type": { |
| 67 | "codecId": "pg/timestamptz-string@1", |
| 68 | "kind": "scalar" |
| 69 | } |
| 70 | }, |
| 71 | "email": { |
| 72 | "nullable": false, |
| 73 | "type": { "codecId": "pg/text@1", "kind": "scalar" } |
| 74 | }, |
| 75 | "id": { |
| 76 | "nullable": false, |
| 77 | "type": { "codecId": "pg/uuid@1", "kind": "scalar" } |
| 78 | }, |
| 79 | "name": { |
| 80 | "nullable": false, |
| 81 | "type": { "codecId": "pg/text@1", "kind": "scalar" } |
| 82 | } |
| 83 | }, |
| 84 | "relations": { |
| 85 | "posts": { |
| 86 | "cardinality": "1:N", |
| 87 | "on": { "localFields": ["id"], "targetFields": ["authorId"] }, |
| 88 | "to": { "model": "Post", "namespace": "public" } |
| 89 | } |
| 90 | }, |
| 91 | "storage": { |
| 92 | "fields": { |
| 93 | "createdAt": { "column": "createdAt" }, |
| 94 | "email": { "column": "email" }, |
| 95 | "id": { "column": "id" }, |
| 96 | "name": { "column": "name" } |
| 97 | }, |
| 98 | "namespaceId": "public", |
| 99 | "table": "user" |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | }, |
| 106 | "execution": { |
| 107 | "executionHash": "71a47058643f13ba06eff2ff44a50fefca21381d669cc1d5fabbe3a0281dfe8d", |
| 108 | "mutations": { |
| 109 | "defaults": [ |
| 110 | { |
| 111 | "onCreate": { "id": "uuidv7", "kind": "generator" }, |
| 112 | "ref": { "column": "id", "namespace": "public", "table": "post" } |
| 113 | }, |
| 114 | { |
| 115 | "onCreate": { "id": "uuidv7", "kind": "generator" }, |
| 116 | "ref": { "column": "id", "namespace": "public", "table": "user" } |
| 117 | } |
| 118 | ] |
| 119 | } |
| 120 | }, |
| 121 | "extensions": {}, |
| 122 | "meta": {}, |
| 123 | "profileHash": "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2", |
| 124 | "roots": { |
| 125 | "post": { "model": "Post", "namespace": "public" }, |
| 126 | "user": { "model": "User", "namespace": "public" } |
| 127 | }, |
| 128 | "schemaVersion": "1", |
| 129 | "storage": { |
| 130 | "namespaces": { |
| 131 | "public": { |
| 132 | "entries": { |
| 133 | "table": { |
| 134 | "post": { |
| 135 | "columns": { |
| 136 | "authorId": { |
| 137 | "codecId": "pg/uuid@1", |
| 138 | "nativeType": "uuid", |
| 139 | "nullable": false |
| 140 | }, |
| 141 | "id": { |
| 142 | "codecId": "pg/uuid@1", |
| 143 | "nativeType": "uuid", |
| 144 | "nullable": false |
| 145 | }, |
| 146 | "title": { |
| 147 | "codecId": "pg/text@1", |
| 148 | "nativeType": "text", |
| 149 | "nullable": false |
| 150 | } |
| 151 | }, |
| 152 | "foreignKeys": [ |
| 153 | { |
| 154 | "source": { |
| 155 | "columns": ["authorId"], |
| 156 | "namespaceId": "public", |
| 157 | "tableName": "post" |
| 158 | }, |
| 159 | "target": { |
| 160 | "columns": ["id"], |
| 161 | "namespaceId": "public", |
| 162 | "tableName": "user" |
| 163 | } |
| 164 | } |
| 165 | ], |
| 166 | "indexes": [ |
| 167 | { |
| 168 | "columns": ["authorId"], |
| 169 | "name": "post_authorId_idx_e47547ed", |
| 170 | "prefix": "post_authorId_idx", |
| 171 | "unique": false |
| 172 | } |
| 173 | ], |
| 174 | "primaryKey": { "columns": ["id"] }, |
| 175 | "uniques": [] |
| 176 | }, |
| 177 | "user": { |
| 178 | "columns": { |
| 179 | "createdAt": { |
| 180 | "codecId": "pg/timestamptz-string@1", |
| 181 | "default": { "expression": "now()", "kind": "function" }, |
| 182 | "nativeType": "timestamptz", |
| 183 | "nullable": false |
| 184 | }, |
| 185 | "email": { |
| 186 | "codecId": "pg/text@1", |
| 187 | "nativeType": "text", |
| 188 | "nullable": false |
| 189 | }, |
| 190 | "id": { |
| 191 | "codecId": "pg/uuid@1", |
| 192 | "nativeType": "uuid", |
| 193 | "nullable": false |
| 194 | }, |
| 195 | "name": { |
| 196 | "codecId": "pg/text@1", |
| 197 | "nativeType": "text", |
| 198 | "nullable": false |
| 199 | } |
| 200 | }, |
| 201 | "foreignKeys": [], |
| 202 | "indexes": [], |
| 203 | "primaryKey": { "columns": ["id"] }, |
| 204 | "uniques": [{ "columns": ["email"] }] |
| 205 | } |
| 206 | } |
| 207 | }, |
| 208 | "id": "public", |
| 209 | "kind": "postgres-schema" |
| 210 | } |
| 211 | }, |
| 212 | "storageHash": "55b9b6715d228453c726947eaa87ebbd9ca24c38185277c672b1096c6e8effde" |
| 213 | }, |
| 214 | "target": "postgres", |
| 215 | "targetFamily": "sql" |
| 216 | } |