mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-13 13:57:43 +02:00
216 lines
6.4 KiB
JSON
216 lines
6.4 KiB
JSON
{
|
|
"_generated": {
|
|
"message": "This file is automatically generated by \"prisma contract emit\".",
|
|
"regenerate": "To regenerate, run: prisma contract emit",
|
|
"warning": "⚠️ GENERATED FILE - DO NOT EDIT"
|
|
},
|
|
"capabilities": {
|
|
"postgres": {
|
|
"distinctOn": true,
|
|
"jsonAgg": true,
|
|
"lateral": true,
|
|
"limit": true,
|
|
"orderBy": true,
|
|
"returning": true
|
|
},
|
|
"sql": {
|
|
"checkConstraint": true,
|
|
"defaultInInsert": true,
|
|
"enums": true,
|
|
"lateral": true,
|
|
"returning": true,
|
|
"scalarList": true
|
|
}
|
|
},
|
|
"domain": {
|
|
"namespaces": {
|
|
"public": {
|
|
"models": {
|
|
"Post": {
|
|
"fields": {
|
|
"authorId": {
|
|
"nullable": false,
|
|
"type": { "codecId": "pg/uuid@1", "kind": "scalar" }
|
|
},
|
|
"id": {
|
|
"nullable": false,
|
|
"type": { "codecId": "pg/uuid@1", "kind": "scalar" }
|
|
},
|
|
"title": {
|
|
"nullable": false,
|
|
"type": { "codecId": "pg/text@1", "kind": "scalar" }
|
|
}
|
|
},
|
|
"relations": {
|
|
"author": {
|
|
"cardinality": "N:1",
|
|
"nullable": false,
|
|
"on": { "localFields": ["authorId"], "targetFields": ["id"] },
|
|
"to": { "model": "User", "namespace": "public" }
|
|
}
|
|
},
|
|
"storage": {
|
|
"fields": {
|
|
"authorId": { "column": "authorId" },
|
|
"id": { "column": "id" },
|
|
"title": { "column": "title" }
|
|
},
|
|
"namespaceId": "public",
|
|
"table": "post"
|
|
}
|
|
},
|
|
"User": {
|
|
"fields": {
|
|
"createdAt": {
|
|
"nullable": false,
|
|
"type": {
|
|
"codecId": "pg/timestamptz-string@1",
|
|
"kind": "scalar"
|
|
}
|
|
},
|
|
"email": {
|
|
"nullable": false,
|
|
"type": { "codecId": "pg/text@1", "kind": "scalar" }
|
|
},
|
|
"id": {
|
|
"nullable": false,
|
|
"type": { "codecId": "pg/uuid@1", "kind": "scalar" }
|
|
},
|
|
"name": {
|
|
"nullable": false,
|
|
"type": { "codecId": "pg/text@1", "kind": "scalar" }
|
|
}
|
|
},
|
|
"relations": {
|
|
"posts": {
|
|
"cardinality": "1:N",
|
|
"on": { "localFields": ["id"], "targetFields": ["authorId"] },
|
|
"to": { "model": "Post", "namespace": "public" }
|
|
}
|
|
},
|
|
"storage": {
|
|
"fields": {
|
|
"createdAt": { "column": "createdAt" },
|
|
"email": { "column": "email" },
|
|
"id": { "column": "id" },
|
|
"name": { "column": "name" }
|
|
},
|
|
"namespaceId": "public",
|
|
"table": "user"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"execution": {
|
|
"executionHash": "71a47058643f13ba06eff2ff44a50fefca21381d669cc1d5fabbe3a0281dfe8d",
|
|
"mutations": {
|
|
"defaults": [
|
|
{
|
|
"onCreate": { "id": "uuidv7", "kind": "generator" },
|
|
"ref": { "column": "id", "namespace": "public", "table": "post" }
|
|
},
|
|
{
|
|
"onCreate": { "id": "uuidv7", "kind": "generator" },
|
|
"ref": { "column": "id", "namespace": "public", "table": "user" }
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"extensions": {},
|
|
"meta": {},
|
|
"profileHash": "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
|
|
"roots": {
|
|
"post": { "model": "Post", "namespace": "public" },
|
|
"user": { "model": "User", "namespace": "public" }
|
|
},
|
|
"schemaVersion": "1",
|
|
"storage": {
|
|
"namespaces": {
|
|
"public": {
|
|
"entries": {
|
|
"table": {
|
|
"post": {
|
|
"columns": {
|
|
"authorId": {
|
|
"codecId": "pg/uuid@1",
|
|
"nativeType": "uuid",
|
|
"nullable": false
|
|
},
|
|
"id": {
|
|
"codecId": "pg/uuid@1",
|
|
"nativeType": "uuid",
|
|
"nullable": false
|
|
},
|
|
"title": {
|
|
"codecId": "pg/text@1",
|
|
"nativeType": "text",
|
|
"nullable": false
|
|
}
|
|
},
|
|
"foreignKeys": [
|
|
{
|
|
"source": {
|
|
"columns": ["authorId"],
|
|
"namespaceId": "public",
|
|
"tableName": "post"
|
|
},
|
|
"target": {
|
|
"columns": ["id"],
|
|
"namespaceId": "public",
|
|
"tableName": "user"
|
|
}
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"columns": ["authorId"],
|
|
"name": "post_authorId_idx_e47547ed",
|
|
"prefix": "post_authorId_idx",
|
|
"unique": false
|
|
}
|
|
],
|
|
"primaryKey": { "columns": ["id"] },
|
|
"uniques": []
|
|
},
|
|
"user": {
|
|
"columns": {
|
|
"createdAt": {
|
|
"codecId": "pg/timestamptz-string@1",
|
|
"default": { "expression": "now()", "kind": "function" },
|
|
"nativeType": "timestamptz",
|
|
"nullable": false
|
|
},
|
|
"email": {
|
|
"codecId": "pg/text@1",
|
|
"nativeType": "text",
|
|
"nullable": false
|
|
},
|
|
"id": {
|
|
"codecId": "pg/uuid@1",
|
|
"nativeType": "uuid",
|
|
"nullable": false
|
|
},
|
|
"name": {
|
|
"codecId": "pg/text@1",
|
|
"nativeType": "text",
|
|
"nullable": false
|
|
}
|
|
},
|
|
"foreignKeys": [],
|
|
"indexes": [],
|
|
"primaryKey": { "columns": ["id"] },
|
|
"uniques": [{ "columns": ["email"] }]
|
|
}
|
|
}
|
|
},
|
|
"id": "public",
|
|
"kind": "postgres-schema"
|
|
}
|
|
},
|
|
"storageHash": "55b9b6715d228453c726947eaa87ebbd9ca24c38185277c672b1096c6e8effde"
|
|
},
|
|
"target": "postgres",
|
|
"targetFamily": "sql"
|
|
}
|