sailfork / t3code-github / .repos/ alchemy-effect/ examples/ cloudflare-d1-drizzle/ migrations/ 20260721033159_fantastic_bloodaxe/ snapshot.json

{
  "version": "7",
  "dialect": "sqlite",
  "id": "ee36cc15-6c63-4de0-8639-6bef5960b627",
  "prevIds": ["00000000-0000-0000-0000-000000000000"],
  "ddl": [
    {
      "name": "posts",
      "entityType": "tables"
    },
    {
      "name": "users",
      "entityType": "tables"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": true,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "posts"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "user_id",
      "entityType": "columns",
      "table": "posts"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "title",
      "entityType": "columns",
      "table": "posts"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "body",
      "entityType": "columns",
      "table": "posts"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "(unixepoch())",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "posts"
    },
    {
      "type": "integer",
      "notNull": false,
      "autoincrement": true,
      "default": null,
      "generated": null,
      "name": "id",
      "entityType": "columns",
      "table": "users"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "email",
      "entityType": "columns",
      "table": "users"
    },
    {
      "type": "text",
      "notNull": true,
      "autoincrement": false,
      "default": null,
      "generated": null,
      "name": "name",
      "entityType": "columns",
      "table": "users"
    },
    {
      "type": "integer",
      "notNull": true,
      "autoincrement": false,
      "default": "(unixepoch())",
      "generated": null,
      "name": "created_at",
      "entityType": "columns",
      "table": "users"
    },
    {
      "columns": ["user_id"],
      "tableTo": "users",
      "columnsTo": ["id"],
      "onUpdate": "NO ACTION",
      "onDelete": "CASCADE",
      "nameExplicit": false,
      "name": "fk_posts_user_id_users_id_fk",
      "entityType": "fks",
      "table": "posts"
    },
    {
      "columns": ["id"],
      "nameExplicit": false,
      "name": "posts_pk",
      "table": "posts",
      "entityType": "pks"
    },
    {
      "columns": ["id"],
      "nameExplicit": false,
      "name": "users_pk",
      "table": "users",
      "entityType": "pks"
    },
    {
      "columns": ["email"],
      "nameExplicit": false,
      "name": "users_email_unique",
      "entityType": "uniques",
      "table": "users"
    }
  ],
  "renames": []
}