sailfork / t3code-github / .repos/ alchemy-effect/ examples/ cloudflare-neon-prisma/ migrations/ snapshots/ 7de60ab4aee8baa42480f8a2d3559ff4027deae801de73c6a93c9eeb4170f558/ contract.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",
                "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": "3d1e5ef7d0bf68e99ed01f74317c9cb4403c9f0235bcb38e447cfe4595460215",
    "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": [],
              "indexes": [],
              "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": "7de60ab4aee8baa42480f8a2d3559ff4027deae801de73c6a93c9eeb4170f558"
  },
  "target": "postgres",
  "targetFamily": "sql"
}