| 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/int4@1", |
| 26 | "kind": "scalar" |
| 27 | } |
| 28 | }, |
| 29 | "id": { |
| 30 | "nullable": false, |
| 31 | "type": { |
| 32 | "codecId": "pg/int4@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 | "email": { |
| 77 | "nullable": false, |
| 78 | "type": { |
| 79 | "codecId": "pg/text@1", |
| 80 | "kind": "scalar" |
| 81 | } |
| 82 | }, |
| 83 | "id": { |
| 84 | "nullable": false, |
| 85 | "type": { |
| 86 | "codecId": "pg/int4@1", |
| 87 | "kind": "scalar" |
| 88 | } |
| 89 | }, |
| 90 | "name": { |
| 91 | "nullable": true, |
| 92 | "type": { |
| 93 | "codecId": "pg/text@1", |
| 94 | "kind": "scalar" |
| 95 | } |
| 96 | } |
| 97 | }, |
| 98 | "relations": { |
| 99 | "posts": { |
| 100 | "cardinality": "1:N", |
| 101 | "on": { |
| 102 | "localFields": ["id"], |
| 103 | "targetFields": ["authorId"] |
| 104 | }, |
| 105 | "to": { |
| 106 | "model": "Post", |
| 107 | "namespace": "public" |
| 108 | } |
| 109 | } |
| 110 | }, |
| 111 | "storage": { |
| 112 | "fields": { |
| 113 | "email": { |
| 114 | "column": "email" |
| 115 | }, |
| 116 | "id": { |
| 117 | "column": "id" |
| 118 | }, |
| 119 | "name": { |
| 120 | "column": "name" |
| 121 | } |
| 122 | }, |
| 123 | "namespaceId": "public", |
| 124 | "table": "user" |
| 125 | } |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | }, |
| 131 | "storage": { |
| 132 | "namespaces": { |
| 133 | "public": { |
| 134 | "entries": { |
| 135 | "table": { |
| 136 | "post": { |
| 137 | "columns": { |
| 138 | "authorId": { |
| 139 | "codecId": "pg/int4@1", |
| 140 | "nativeType": "int4", |
| 141 | "nullable": false |
| 142 | }, |
| 143 | "id": { |
| 144 | "codecId": "pg/int4@1", |
| 145 | "default": { |
| 146 | "expression": "autoincrement()", |
| 147 | "kind": "function" |
| 148 | }, |
| 149 | "nativeType": "int4", |
| 150 | "nullable": false |
| 151 | }, |
| 152 | "title": { |
| 153 | "codecId": "pg/text@1", |
| 154 | "nativeType": "text", |
| 155 | "nullable": false |
| 156 | } |
| 157 | }, |
| 158 | "foreignKeys": [ |
| 159 | { |
| 160 | "source": { |
| 161 | "columns": ["authorId"], |
| 162 | "namespaceId": "public", |
| 163 | "tableName": "post" |
| 164 | }, |
| 165 | "target": { |
| 166 | "columns": ["id"], |
| 167 | "namespaceId": "public", |
| 168 | "tableName": "user" |
| 169 | } |
| 170 | } |
| 171 | ], |
| 172 | "indexes": [ |
| 173 | { |
| 174 | "columns": ["authorId"], |
| 175 | "name": "post_authorId_idx_e47547ed", |
| 176 | "prefix": "post_authorId_idx", |
| 177 | "unique": false |
| 178 | } |
| 179 | ], |
| 180 | "primaryKey": { |
| 181 | "columns": ["id"] |
| 182 | }, |
| 183 | "uniques": [] |
| 184 | }, |
| 185 | "user": { |
| 186 | "columns": { |
| 187 | "email": { |
| 188 | "codecId": "pg/text@1", |
| 189 | "nativeType": "text", |
| 190 | "nullable": false |
| 191 | }, |
| 192 | "id": { |
| 193 | "codecId": "pg/int4@1", |
| 194 | "default": { |
| 195 | "expression": "autoincrement()", |
| 196 | "kind": "function" |
| 197 | }, |
| 198 | "nativeType": "int4", |
| 199 | "nullable": false |
| 200 | }, |
| 201 | "name": { |
| 202 | "codecId": "pg/text@1", |
| 203 | "nativeType": "text", |
| 204 | "nullable": true |
| 205 | } |
| 206 | }, |
| 207 | "foreignKeys": [], |
| 208 | "indexes": [], |
| 209 | "primaryKey": { |
| 210 | "columns": ["id"] |
| 211 | }, |
| 212 | "uniques": [ |
| 213 | { |
| 214 | "columns": ["email"] |
| 215 | } |
| 216 | ] |
| 217 | } |
| 218 | } |
| 219 | }, |
| 220 | "id": "public", |
| 221 | "kind": "postgres-schema" |
| 222 | } |
| 223 | }, |
| 224 | "storageHash": "b09d1a81a21c191e35c6d2e6bbb462154b005582529fa8120638576d8ee3cd1d" |
| 225 | }, |
| 226 | "capabilities": { |
| 227 | "postgres": { |
| 228 | "distinctOn": true, |
| 229 | "jsonAgg": true, |
| 230 | "lateral": true, |
| 231 | "limit": true, |
| 232 | "orderBy": true, |
| 233 | "returning": true |
| 234 | }, |
| 235 | "sql": { |
| 236 | "checkConstraint": true, |
| 237 | "defaultInInsert": true, |
| 238 | "enums": true, |
| 239 | "lateral": true, |
| 240 | "returning": true, |
| 241 | "scalarList": true |
| 242 | } |
| 243 | }, |
| 244 | "extensions": {}, |
| 245 | "meta": {}, |
| 246 | "_generated": { |
| 247 | "warning": "⚠️ GENERATED FILE - DO NOT EDIT", |
| 248 | "message": "This file is automatically generated by \"prisma contract emit\".", |
| 249 | "regenerate": "To regenerate, run: prisma contract emit" |
| 250 | } |
| 251 | } |