{
  "version": "6",
  "id": "a0d18802-c390-47d4-98f1-d1f83869cf0c",
  "prevIds": ["2fd0308b-0653-437d-aea3-29428a4de9f1"],
  "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"
    },
    {
      "name": "auth",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "auth",
      "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": "auth",
      "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": "auth",
      "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": "auth",
      "entityType": "columns"
    },
    {
      "type": "enum('email','github','google')",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "provider",
      "table": "auth",
      "entityType": "columns"
    },
    {
      "type": "varchar(255)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "subject",
      "table": "auth",
      "entityType": "columns"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "account_id",
      "table": "auth",
      "entityType": "columns"
    },
    {
      "name": "benchmark",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "benchmark",
      "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": "benchmark",
      "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": "benchmark",
      "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": "benchmark",
      "entityType": "columns"
    },
    {
      "type": "varchar(64)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "model",
      "table": "benchmark",
      "entityType": "columns"
    },
    {
      "type": "varchar(64)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "agent",
      "table": "benchmark",
      "entityType": "columns"
    },
    {
      "type": "mediumtext",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "result",
      "table": "benchmark",
      "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(32)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "payment_method_type",
      "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": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "reload_trigger",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "reload_amount",
      "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"
    },
    {
      "type": "varchar(28)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "subscription_id",
      "table": "billing",
      "entityType": "columns"
    },
    {
      "type": "varchar(28)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "subscription_coupon_id",
      "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"
    },
    {
      "type": "json",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "enrichment",
      "table": "payment",
      "entityType": "columns"
    },
    {
      "name": "subscription",
      "entityType": "tables"
    },
    {
      "type": "varchar(30)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "id",
      "table": "subscription",
      "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": "subscription",
      "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": "subscription",
      "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": "subscription",
      "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": "subscription",
      "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": "subscription",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "rolling_usage",
      "table": "subscription",
      "entityType": "columns"
    },
    {
      "type": "bigint",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "fixed_usage",
      "table": "subscription",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_rolling_updated",
      "table": "subscription",
      "entityType": "columns"
    },
    {
      "type": "timestamp(3)",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "time_fixed_updated",
      "table": "subscription",
      "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"
    },
    {
      "type": "json",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "enrichment",
      "table": "usage",
      "entityType": "columns"
    },
    {
      "name": "ip_rate_limit",
      "entityType": "tables"
    },
    {
      "type": "varchar(45)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "ip",
      "table": "ip_rate_limit",
      "entityType": "columns"
    },
    {
      "type": "varchar(10)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "interval",
      "table": "ip_rate_limit",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "count",
      "table": "ip_rate_limit",
      "entityType": "columns"
    },
    {
      "name": "ip",
      "entityType": "tables"
    },
    {
      "type": "varchar(45)",
      "notNull": true,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "ip",
      "table": "ip",
      "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": "ip",
      "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": "ip",
      "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": "ip",
      "entityType": "columns"
    },
    {
      "type": "int",
      "notNull": false,
      "autoIncrement": false,
      "default": null,
      "onUpdateNow": false,
      "onUpdateNowFsp": null,
      "charSet": null,
      "collation": null,
      "generated": null,
      "name": "usage",
      "table": "ip",
      "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": ["id"],
      "name": "PRIMARY",
      "table": "account",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "provider",
          "isExpression": false
        },
        {
          "value": "subject",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "provider",
      "table": "auth",
      "entityType": "indexes"
    },
    {
      "columns": [
        {
          "value": "account_id",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "account_id",
      "table": "auth",
      "entityType": "indexes"
    },
    {
      "columns": ["id"],
      "name": "PRIMARY",
      "table": "auth",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "time_created",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "time_created",
      "table": "benchmark",
      "entityType": "indexes"
    },
    {
      "columns": ["id"],
      "name": "PRIMARY",
      "table": "benchmark",
      "entityType": "pks"
    },
    {
      "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": [
        {
          "value": "subscription_id",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "global_subscription_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": [
        {
          "value": "workspace_id",
          "isExpression": false
        },
        {
          "value": "user_id",
          "isExpression": false
        }
      ],
      "isUnique": true,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "workspace_user_id",
      "table": "subscription",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "subscription",
      "entityType": "pks"
    },
    {
      "columns": [
        {
          "value": "workspace_id",
          "isExpression": false
        },
        {
          "value": "time_created",
          "isExpression": false
        }
      ],
      "isUnique": false,
      "using": null,
      "algorithm": null,
      "lock": null,
      "nameExplicit": true,
      "name": "usage_time_created",
      "table": "usage",
      "entityType": "indexes"
    },
    {
      "columns": ["workspace_id", "id"],
      "name": "PRIMARY",
      "table": "usage",
      "entityType": "pks"
    },
    {
      "columns": ["ip", "interval"],
      "name": "PRIMARY",
      "table": "ip_rate_limit",
      "entityType": "pks"
    },
    {
      "columns": ["ip"],
      "name": "PRIMARY",
      "table": "ip",
      "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": []
}
