sailfork / t3code-github / .repos/ alchemy-effect/ examples/ cloudflare-planetscale-postgres-drizzle/ migrations/ 20260504073935_migration/ snapshot.json

{
  "dialect": "postgres",
  "id": "2e3d1fe8-2425-4248-b808-e2055d532265",
  "prevIds": ["00000000-0000-0000-0000-000000000000"],
  "version": "8",
  "ddl": [
    {
      "isRlsEnabled": false,
      "name": "posts",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "isRlsEnabled": false,
      "name": "users",
      "entityType": "tables",
      "schema": "public"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "posts"
    },
    {
      "type": "integer",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "user_id",
      "entityType": "columns",
      "schema": "public",
      "table": "posts"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "title",
      "entityType": "columns",
      "schema": "public",
      "table": "posts"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "body",
      "entityType": "columns",
      "schema": "public",
      "table": "posts"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "posts"
    },
    {
      "type": "serial",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "id",
      "entityType": "columns",
      "schema": "public",
      "table": "users"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "email",
      "entityType": "columns",
      "schema": "public",
      "table": "users"
    },
    {
      "type": "text",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": null,
      "generated": null,
      "identity": null,
      "name": "name",
      "entityType": "columns",
      "schema": "public",
      "table": "users"
    },
    {
      "type": "timestamp with time zone",
      "typeSchema": null,
      "notNull": true,
      "dimensions": 0,
      "default": "now()",
      "generated": null,
      "identity": null,
      "name": "created_at",
      "entityType": "columns",
      "schema": "public",
      "table": "users"
    },
    {
      "nameExplicit": false,
      "columns": ["user_id"],
      "schemaTo": "public",
      "tableTo": "users",
      "columnsTo": ["id"],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "name": "posts_user_id_users_id_fkey",
      "entityType": "fks",
      "schema": "public",
      "table": "posts"
    },
    {
      "columns": ["id"],
      "nameExplicit": false,
      "name": "posts_pkey",
      "schema": "public",
      "table": "posts",
      "entityType": "pks"
    },
    {
      "columns": ["id"],
      "nameExplicit": false,
      "name": "users_pkey",
      "schema": "public",
      "table": "users",
      "entityType": "pks"
    },
    {
      "nameExplicit": false,
      "columns": ["email"],
      "nullsNotDistinct": false,
      "name": "users_email_key",
      "schema": "public",
      "table": "users",
      "entityType": "uniques"
    }
  ],
  "renames": []
}