{
  "version": "6",
  "id": "33551b4c-fc2e-4753-8d9d-0971f333e65d",
  "prevIds": ["a331e38c-c2e3-406d-a1ff-b0af7229cd85"],
  "dialect": "mysql",
  "ddl": [
    {
      "name": "account",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "account",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "account",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "account",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "account",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "email",
      "table": "account",
      "entityType": "columns"
    },
    {
      "name": "billing",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "workspace_id",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "customer_id",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "payment_method_id",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "varchar(4)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "payment_method_last4",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "balance",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "monthly_limit",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "monthly_usage",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_monthly_usage_updated",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "boolean",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "reload",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "reload_error",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_reload_error",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_reload_locked_till",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "name": "payment",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "workspace_id",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "customer_id",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "invoice_id",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "payment_id",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "amount",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_refunded",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "name": "usage",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "workspace_id",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "model",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "provider",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "input_tokens",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "output_tokens",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "reasoning_tokens",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "cache_read_tokens",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "cache_write_5m_tokens",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "cache_write_1h_tokens",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "cost",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "name": "key",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "workspace_id",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "name",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "key",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "user_id",
      "table": "key",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_used",
      "table": "key",
      "entityType": "columns"
    },
    {
      "name": "user",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "workspace_id",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "account_id",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "email",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "name",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_seen",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "color",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "enum('admin','member')",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "role",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "monthly_limit",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "monthly_usage",
      "table": "user",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_monthly_usage_updated",
      "table": "user",
      "entityType": "columns"
    },
    {
      "name": "workspace",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "workspace",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "slug",
      "table": "workspace",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "name",
      "table": "workspace",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "(now())",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_created",
      "table": "workspace",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": true,
      "autoIncrement": false,
      "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)",
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_updated",
      "table": "workspace",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_deleted",
      "table": "workspace",
      "entityType": "columns"
    },
    {
      "columns": [
        {
          "value": "email",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "email",
      "table": "account",
      "entityType": "indexes"
    },
    {
      "columns": [
        {
          "value": "customer_id",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "global_customer_id",
      "table": "billing",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "billing",
      "entityType": "pks"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "payment",
      "entityType": "pks"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "usage",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "key",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "global_key",
      "table": "key",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "key",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "workspace_id",
          "isExpression": false
        },
        {
          "value": "account_id",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "user_account_id",
      "table": "user",
      "entityType": "indexes"
    },
    {
      "columns": [
        {
          "value": "workspace_id",
          "isExpression": false
        },
        {
          "value": "email",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "user_email",
      "table": "user",
      "entityType": "indexes"
    },
    {
      "columns": [
        {
          "value": "account_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "global_account_id",
      "table": "user",
      "entityType": "indexes"
    },
    {
      "columns": [
        {
          "value": "email",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "global_email",
      "table": "user",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "user",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "slug",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "slug",
      "table": "workspace",
      "entityType": "indexes"
    },
    {
      "columns": ["id"],
      "name": "PRIMARY",
      "table": "workspace",
      "entityType": "pks"
    }
  ],
  "renames": []
}
