{
  "version": "6",
  "id": "b2406421-f22d-4153-a2a4-6deafe70ee54",
  "prevIds": ["9dceb591-8e08-4991-a49c-1f1741ec1e57"],
  "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"
    },
    {
      "type": "varchar(30)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "key_id",
      "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": "model",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "model",
      "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": "model",
      "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": "model",
      "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": "model",
      "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": "model",
      "entityType": "columns"
    },
    {
      "type": "varchar(64)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "model",
      "table": "model",
      "entityType": "columns"
    },
    {
      "name": "provider",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "provider",
      "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": "provider",
      "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": "provider",
      "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": "provider",
      "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": "provider",
      "entityType": "columns"
    },
    {
      "type": "varchar(64)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "provider",
      "table": "provider",
      "entityType": "columns"
    },
    {
      "type": "text",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "credentials",
      "table": "provider",
      "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": "model",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "model_workspace_model",
      "table": "model",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "model",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "workspace_id",
          "isExpression": false
        },
        {
          "value": "provider",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "workspace_provider",
      "table": "provider",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "provider",
      "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": []
}
