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