Skip to content

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,341 @@
{
"_generated": {
"message": "This file is automatically generated by \"prisma-next contract emit\".",
"regenerate": "To regenerate, run: prisma-next contract emit",
"warning": "⚠️ GENERATED FILE - DO NOT EDIT"
},
"capabilities": {
"sql": {
"foreignKeys": true,
"jsonAgg": true,
"limit": true,
"orderBy": true,
"returning": true
}
},
"domain": {
"namespaces": {
"__unbound__": {
"models": {
"Post": {
"fields": {
"createdAt": {
"nullable": false,
"type": { "codecId": "sqlite/datetime@1", "kind": "scalar" }
},
"id": {
"nullable": false,
"type": {
"codecId": "sql/char@1",
"kind": "scalar",
"typeParams": { "length": 36 }
}
},
"title": {
"nullable": false,
"type": { "codecId": "sqlite/text@1", "kind": "scalar" }
},
"userId": {
"nullable": false,
"type": {
"codecId": "sql/char@1",
"kind": "scalar",
"typeParams": { "length": 36 }
}
}
},
"relations": {
"tags": {
"cardinality": "N:M",
"on": { "localFields": ["id"], "targetFields": ["postId"] },
"through": {
"childColumns": ["tagId"],
"parentColumns": ["postId"],
"table": "post_tag",
"targetColumns": ["id"]
},
"to": { "model": "Tag", "namespace": "__unbound__" }
},
"user": {
"cardinality": "N:1",
"on": { "localFields": ["userId"], "targetFields": ["id"] },
"to": { "model": "User", "namespace": "__unbound__" }
}
},
"storage": {
"fields": {
"createdAt": { "column": "createdAt" },
"id": { "column": "id" },
"title": { "column": "title" },
"userId": { "column": "userId" }
},
"table": "post"
}
},
"PostTag": {
"fields": {
"postId": {
"nullable": false,
"type": {
"codecId": "sql/char@1",
"kind": "scalar",
"typeParams": { "length": 36 }
}
},
"tagId": {
"nullable": false,
"type": {
"codecId": "sql/char@1",
"kind": "scalar",
"typeParams": { "length": 36 }
}
}
},
"relations": {},
"storage": {
"fields": { "postId": { "column": "postId" }, "tagId": { "column": "tagId" } },
"table": "post_tag"
}
},
"Tag": {
"fields": {
"id": {
"nullable": false,
"type": {
"codecId": "sql/char@1",
"kind": "scalar",
"typeParams": { "length": 36 }
}
},
"label": {
"nullable": false,
"type": { "codecId": "sqlite/text@1", "kind": "scalar" }
}
},
"relations": {
"posts": {
"cardinality": "N:M",
"on": { "localFields": ["id"], "targetFields": ["tagId"] },
"through": {
"childColumns": ["postId"],
"parentColumns": ["tagId"],
"table": "post_tag",
"targetColumns": ["id"]
},
"to": { "model": "Post", "namespace": "__unbound__" }
}
},
"storage": {
"fields": { "id": { "column": "id" }, "label": { "column": "label" } },
"table": "tag"
}
},
"User": {
"fields": {
"createdAt": {
"nullable": false,
"type": { "codecId": "sqlite/datetime@1", "kind": "scalar" }
},
"displayName": {
"nullable": false,
"type": { "codecId": "sqlite/text@1", "kind": "scalar" }
},
"email": {
"nullable": false,
"type": { "codecId": "sqlite/text@1", "kind": "scalar" }
},
"id": {
"nullable": false,
"type": {
"codecId": "sql/char@1",
"kind": "scalar",
"typeParams": { "length": 36 }
}
}
},
"relations": {
"posts": {
"cardinality": "1:N",
"on": { "localFields": ["id"], "targetFields": ["userId"] },
"to": { "model": "Post", "namespace": "__unbound__" }
}
},
"storage": {
"fields": {
"createdAt": { "column": "createdAt" },
"displayName": { "column": "displayName" },
"email": { "column": "email" },
"id": { "column": "id" }
},
"table": "user"
}
}
}
}
}
},
"execution": {
"executionHash": "sha256:70c6ceb0ed79d5888519ec84bf32e31a056283fa8d5c7b5c1ba65b709f8595c8",
"mutations": {
"defaults": [
{
"onCreate": { "id": "uuidv4", "kind": "generator" },
"ref": { "column": "id", "table": "post" }
},
{
"onCreate": { "id": "uuidv4", "kind": "generator" },
"ref": { "column": "id", "table": "tag" }
},
{
"onCreate": { "id": "uuidv4", "kind": "generator" },
"ref": { "column": "id", "table": "user" }
}
]
}
},
"extensionPacks": {},
"meta": {},
"profileHash": "sha256:3cc333ecad9f3f4c7229370a9d2c37e908cdce0f8d2e9fb132d50605b024eff2",
"roots": {
"post": { "model": "Post", "namespace": "__unbound__" },
"post_tag": { "model": "PostTag", "namespace": "__unbound__" },
"tag": { "model": "Tag", "namespace": "__unbound__" },
"user": { "model": "User", "namespace": "__unbound__" }
},
"schemaVersion": "1",
"storage": {
"namespaces": {
"__unbound__": {
"id": "__unbound__",
"tables": {
"post": {
"columns": {
"createdAt": {
"codecId": "sqlite/datetime@1",
"default": { "expression": "now()", "kind": "function" },
"nativeType": "text",
"nullable": false
},
"id": {
"codecId": "sql/char@1",
"nativeType": "character",
"nullable": false,
"typeParams": { "length": 36 }
},
"title": { "codecId": "sqlite/text@1", "nativeType": "text", "nullable": false },
"userId": {
"codecId": "sql/char@1",
"nativeType": "character",
"nullable": false,
"typeParams": { "length": 36 }
}
},
"foreignKeys": [
{
"constraint": true,
"index": true,
"name": "post_userId_fkey",
"source": {
"columns": ["userId"],
"namespaceId": "__unbound__",
"tableName": "post"
},
"target": { "columns": ["id"], "namespaceId": "__unbound__", "tableName": "user" }
}
],
"indexes": [],
"primaryKey": { "columns": ["id"] },
"uniques": []
},
"post_tag": {
"columns": {
"postId": {
"codecId": "sql/char@1",
"nativeType": "character",
"nullable": false,
"typeParams": { "length": 36 }
},
"tagId": {
"codecId": "sql/char@1",
"nativeType": "character",
"nullable": false,
"typeParams": { "length": 36 }
}
},
"foreignKeys": [
{
"constraint": true,
"index": true,
"name": "post_tag_postId_fkey",
"source": {
"columns": ["postId"],
"namespaceId": "__unbound__",
"tableName": "post_tag"
},
"target": { "columns": ["id"], "namespaceId": "__unbound__", "tableName": "post" }
},
{
"constraint": true,
"index": true,
"name": "post_tag_tagId_fkey",
"source": {
"columns": ["tagId"],
"namespaceId": "__unbound__",
"tableName": "post_tag"
},
"target": { "columns": ["id"], "namespaceId": "__unbound__", "tableName": "tag" }
}
],
"indexes": [],
"primaryKey": { "columns": ["postId", "tagId"], "name": "post_tag_pkey" },
"uniques": []
},
"tag": {
"columns": {
"id": {
"codecId": "sql/char@1",
"nativeType": "character",
"nullable": false,
"typeParams": { "length": 36 }
},
"label": { "codecId": "sqlite/text@1", "nativeType": "text", "nullable": false }
},
"foreignKeys": [],
"indexes": [],
"primaryKey": { "columns": ["id"] },
"uniques": []
},
"user": {
"columns": {
"createdAt": {
"codecId": "sqlite/datetime@1",
"default": { "expression": "now()", "kind": "function" },
"nativeType": "text",
"nullable": false
},
"displayName": {
"codecId": "sqlite/text@1",
"nativeType": "text",
"nullable": false
},
"email": { "codecId": "sqlite/text@1", "nativeType": "text", "nullable": false },
"id": {
"codecId": "sql/char@1",
"nativeType": "character",
"nullable": false,
"typeParams": { "length": 36 }
}
},
"foreignKeys": [],
"indexes": [],
"primaryKey": { "columns": ["id"] },
"uniques": []
}
}
}
},
"storageHash": "sha256:194cf0bce4a19c7191f9e4ae8670de21707c48678d7b8998d38708a506488c88"
},
"target": "sqlite",
"targetFamily": "sql"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"hash": "sha256:194cf0bce4a19c7191f9e4ae8670de21707c48678d7b8998d38708a506488c88",
"invariants": []
}
Loading
Loading