{
  "version": "5",
  "dialect": "mysql",
  "id": "6e508a46-d758-4abd-903f-69bd41f35577",
  "prevId": "94ccd966-d5ba-4099-b2be-39daa143ac7a",
  "tables": {
    "activity_logs": {
      "name": "activity_logs",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "batch_uuid": {
          "name": "batch_uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "event_type": {
          "name": "event_type",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "node_id": {
          "name": "node_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "properties": {
          "name": "properties",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "ip": {
          "name": "ip",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "hashed_ip": {
          "name": "hashed_ip",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "timestamp": {
          "name": "timestamp",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "activity_logs_serverId_idx": {
          "name": "activity_logs_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        },
        "activity_logs_userId_idx": {
          "name": "activity_logs_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "activity_logs_timestamp_idx": {
          "name": "activity_logs_timestamp_idx",
          "columns": [
            "timestamp"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "activity_logs_id": {
          "name": "activity_logs_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "node_allocations": {
      "name": "node_allocations",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "node_id": {
          "name": "node_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "ip": {
          "name": "ip",
          "type": "varchar(45)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "ip_alias": {
          "name": "ip_alias",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "port": {
          "name": "port",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "allocations_nodeId_idx": {
          "name": "allocations_nodeId_idx",
          "columns": [
            "node_id"
          ],
          "isUnique": false
        },
        "allocations_serverId_idx": {
          "name": "allocations_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "node_allocations_node_id_nodes_id_fk": {
          "name": "node_allocations_node_id_nodes_id_fk",
          "tableFrom": "node_allocations",
          "tableTo": "nodes",
          "columnsFrom": [
            "node_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "node_allocations_id": {
          "name": "node_allocations_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "account": {
      "name": "account",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "account_id": {
          "name": "account_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider_id": {
          "name": "provider_id",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "access_token": {
          "name": "access_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "refresh_token": {
          "name": "refresh_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "id_token": {
          "name": "id_token",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "access_token_expires_at": {
          "name": "access_token_expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "refresh_token_expires_at": {
          "name": "refresh_token_expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "scope": {
          "name": "scope",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "password": {
          "name": "password",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "account_userId_idx": {
          "name": "account_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "account_user_id_user_id_fk": {
          "name": "account_user_id_user_id_fk",
          "tableFrom": "account",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "account_id": {
          "name": "account_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "apikey": {
      "name": "apikey",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_id": {
          "name": "config_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'default'"
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "start": {
          "name": "start",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "prefix": {
          "name": "prefix",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "key": {
          "name": "key",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "reference_id": {
          "name": "reference_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "refill_interval": {
          "name": "refill_interval",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "refill_amount": {
          "name": "refill_amount",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_refill_at": {
          "name": "last_refill_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "enabled": {
          "name": "enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": true
        },
        "rate_limit_enabled": {
          "name": "rate_limit_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "rate_limit_time_window": {
          "name": "rate_limit_time_window",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "rate_limit_max": {
          "name": "rate_limit_max",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "request_count": {
          "name": "request_count",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": 0
        },
        "remaining": {
          "name": "remaining",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_request": {
          "name": "last_request",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "permissions": {
          "name": "permissions",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "metadata": {
          "name": "metadata",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "apikey_referenceId_idx": {
          "name": "apikey_referenceId_idx",
          "columns": [
            "reference_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "apikey_id": {
          "name": "apikey_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "session": {
      "name": "session",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "token": {
          "name": "token",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "ip_address": {
          "name": "ip_address",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "user_agent": {
          "name": "user_agent",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "impersonated_by": {
          "name": "impersonated_by",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "session_userId_idx": {
          "name": "session_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "session_user_id_user_id_fk": {
          "name": "session_user_id_user_id_fk",
          "tableFrom": "session",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "session_id": {
          "name": "session_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "session_token_unique": {
          "name": "session_token_unique",
          "columns": [
            "token"
          ]
        }
      },
      "checkConstraint": {}
    },
    "twoFactor": {
      "name": "twoFactor",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "secret": {
          "name": "secret",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "backup_codes": {
          "name": "backup_codes",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "verified": {
          "name": "verified",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": true
        }
      },
      "indexes": {},
      "foreignKeys": {
        "twoFactor_user_id_user_id_fk": {
          "name": "twoFactor_user_id_user_id_fk",
          "tableFrom": "twoFactor",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "twoFactor_id": {
          "name": "twoFactor_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "user": {
      "name": "user",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "email": {
          "name": "email",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "email_verified": {
          "name": "email_verified",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "image": {
          "name": "image",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "role": {
          "name": "role",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": "'user'"
        },
        "banned": {
          "name": "banned",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "ban_reason": {
          "name": "ban_reason",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "ban_expires": {
          "name": "ban_expires",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "two_factor_enabled": {
          "name": "two_factor_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": false
        },
        "billing_name": {
          "name": "billing_name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_address_line1": {
          "name": "billing_address_line1",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_address_line2": {
          "name": "billing_address_line2",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_city": {
          "name": "billing_city",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_state": {
          "name": "billing_state",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_postal_code": {
          "name": "billing_postal_code",
          "type": "varchar(20)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_country": {
          "name": "billing_country",
          "type": "varchar(2)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "vat_number": {
          "name": "vat_number",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "vat_country": {
          "name": "vat_country",
          "type": "varchar(2)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "locale": {
          "name": "locale",
          "type": "varchar(10)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'en'"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "user_id": {
          "name": "user_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "user_email_unique": {
          "name": "user_email_unique",
          "columns": [
            "email"
          ]
        }
      },
      "checkConstraint": {}
    },
    "verification": {
      "name": "verification",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "identifier": {
          "name": "identifier",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "verification_identifier_idx": {
          "name": "verification_identifier_idx",
          "columns": [
            "identifier"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "verification_id": {
          "name": "verification_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "backups": {
      "name": "backups",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "ignored_files": {
          "name": "ignored_files",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "disk": {
          "name": "disk",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'local'"
        },
        "checksum": {
          "name": "checksum",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "bytes": {
          "name": "bytes",
          "type": "bigint",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "completed_at": {
          "name": "completed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "is_locked": {
          "name": "is_locked",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "is_successful": {
          "name": "is_successful",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "backups_serverId_idx": {
          "name": "backups_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "backups_server_id_servers_id_fk": {
          "name": "backups_server_id_servers_id_fk",
          "tableFrom": "backups",
          "tableTo": "servers",
          "columnsFrom": [
            "server_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "backups_id": {
          "name": "backups_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "backups_uuid_unique": {
          "name": "backups_uuid_unique",
          "columns": [
            "uuid"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_categories": {
      "name": "billing_categories",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "slug": {
          "name": "slug",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "icon": {
          "name": "icon",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "cover_image": {
          "name": "cover_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "sort_order": {
          "name": "sort_order",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "billing_categories_id": {
          "name": "billing_categories_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_categories_slug_unique": {
          "name": "billing_categories_slug_unique",
          "columns": [
            "slug"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_coupon_redemptions": {
      "name": "billing_coupon_redemptions",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "coupon_id": {
          "name": "coupon_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "invoice_id": {
          "name": "invoice_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "discount_amount_cents": {
          "name": "discount_amount_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "redeemed_at": {
          "name": "redeemed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_coupon_redemptions_couponId_idx": {
          "name": "billing_coupon_redemptions_couponId_idx",
          "columns": [
            "coupon_id"
          ],
          "isUnique": false
        },
        "billing_coupon_redemptions_userId_idx": {
          "name": "billing_coupon_redemptions_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "billing_coupon_redemptions_invoiceId_idx": {
          "name": "billing_coupon_redemptions_invoiceId_idx",
          "columns": [
            "invoice_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_coupon_redemptions_coupon_id_billing_coupons_id_fk": {
          "name": "billing_coupon_redemptions_coupon_id_billing_coupons_id_fk",
          "tableFrom": "billing_coupon_redemptions",
          "tableTo": "billing_coupons",
          "columnsFrom": [
            "coupon_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_coupon_redemptions_user_id_user_id_fk": {
          "name": "billing_coupon_redemptions_user_id_user_id_fk",
          "tableFrom": "billing_coupon_redemptions",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_coupon_redemptions_invoice_id_billing_invoices_id_fk": {
          "name": "billing_coupon_redemptions_invoice_id_billing_invoices_id_fk",
          "tableFrom": "billing_coupon_redemptions",
          "tableTo": "billing_invoices",
          "columnsFrom": [
            "invoice_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_coupon_redemptions_id": {
          "name": "billing_coupon_redemptions_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_coupon_redemptions_couponId_userId_unique": {
          "name": "billing_coupon_redemptions_couponId_userId_unique",
          "columns": [
            "coupon_id",
            "user_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_coupons": {
      "name": "billing_coupons",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "code": {
          "name": "code",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "discount_type": {
          "name": "discount_type",
          "type": "enum('percentage','fixed')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'percentage'"
        },
        "discount_value": {
          "name": "discount_value",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": "'USD'"
        },
        "max_redemptions": {
          "name": "max_redemptions",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "times_redeemed": {
          "name": "times_redeemed",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "redeem_by": {
          "name": "redeem_by",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "plan_id": {
          "name": "plan_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_coupon_id": {
          "name": "provider_coupon_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_coupons_planId_idx": {
          "name": "billing_coupons_planId_idx",
          "columns": [
            "plan_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_coupons_plan_id_billing_plans_id_fk": {
          "name": "billing_coupons_plan_id_billing_plans_id_fk",
          "tableFrom": "billing_coupons",
          "tableTo": "billing_plans",
          "columnsFrom": [
            "plan_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_coupons_id": {
          "name": "billing_coupons_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_coupons_code_unique": {
          "name": "billing_coupons_code_unique",
          "columns": [
            "code"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_invoice_items": {
      "name": "billing_invoice_items",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "invoice_id": {
          "name": "invoice_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "varchar(500)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "quantity": {
          "name": "quantity",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 1
        },
        "unit_amount_cents": {
          "name": "unit_amount_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "total_cents": {
          "name": "total_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "period_start": {
          "name": "period_start",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "period_end": {
          "name": "period_end",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_invoice_items_invoiceId_idx": {
          "name": "billing_invoice_items_invoiceId_idx",
          "columns": [
            "invoice_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_invoice_items_invoice_id_billing_invoices_id_fk": {
          "name": "billing_invoice_items_invoice_id_billing_invoices_id_fk",
          "tableFrom": "billing_invoice_items",
          "tableTo": "billing_invoices",
          "columnsFrom": [
            "invoice_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_invoice_items_id": {
          "name": "billing_invoice_items_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "billing_invoices": {
      "name": "billing_invoices",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "subscription_id": {
          "name": "subscription_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "gateway_id": {
          "name": "gateway_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "invoice_number": {
          "name": "invoice_number",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('draft','open','paid','uncollectible','void')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'draft'"
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "subtotal_cents": {
          "name": "subtotal_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "tax_cents": {
          "name": "tax_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "discount_cents": {
          "name": "discount_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "total_cents": {
          "name": "total_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "amount_paid_cents": {
          "name": "amount_paid_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "amount_due_cents": {
          "name": "amount_due_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "vat_number": {
          "name": "vat_number",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "vat_rate": {
          "name": "vat_rate",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "billing_address": {
          "name": "billing_address",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "due_date": {
          "name": "due_date",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "paid_at": {
          "name": "paid_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "notes": {
          "name": "notes",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_invoice_id": {
          "name": "provider_invoice_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_invoices_userId_idx": {
          "name": "billing_invoices_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "billing_invoices_subscriptionId_idx": {
          "name": "billing_invoices_subscriptionId_idx",
          "columns": [
            "subscription_id"
          ],
          "isUnique": false
        },
        "billing_invoices_providerInvoiceId_idx": {
          "name": "billing_invoices_providerInvoiceId_idx",
          "columns": [
            "provider_invoice_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_invoices_user_id_user_id_fk": {
          "name": "billing_invoices_user_id_user_id_fk",
          "tableFrom": "billing_invoices",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_invoices_subscription_id_billing_subscriptions_id_fk": {
          "name": "billing_invoices_subscription_id_billing_subscriptions_id_fk",
          "tableFrom": "billing_invoices",
          "tableTo": "billing_subscriptions",
          "columnsFrom": [
            "subscription_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_invoices_gateway_id_billing_payment_gateways_id_fk": {
          "name": "billing_invoices_gateway_id_billing_payment_gateways_id_fk",
          "tableFrom": "billing_invoices",
          "tableTo": "billing_payment_gateways",
          "columnsFrom": [
            "gateway_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_invoices_id": {
          "name": "billing_invoices_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_invoices_invoiceNumber_unique": {
          "name": "billing_invoices_invoiceNumber_unique",
          "columns": [
            "invoice_number"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_payment_gateways": {
      "name": "billing_payment_gateways",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider": {
          "name": "provider",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config": {
          "name": "config",
          "type": "json",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('{}')"
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "is_default": {
          "name": "is_default",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "sort_order": {
          "name": "sort_order",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "billing_payment_gateways_id": {
          "name": "billing_payment_gateways_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "billing_payment_methods": {
      "name": "billing_payment_methods",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "gateway_id": {
          "name": "gateway_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "type": {
          "name": "type",
          "type": "enum('card','sepa_debit','paypal','bank_transfer','other')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'card'"
        },
        "card_brand": {
          "name": "card_brand",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "card_last4": {
          "name": "card_last4",
          "type": "varchar(4)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "card_exp_month": {
          "name": "card_exp_month",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "card_exp_year": {
          "name": "card_exp_year",
          "type": "int",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "is_default": {
          "name": "is_default",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "provider_payment_method_id": {
          "name": "provider_payment_method_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider_customer_id": {
          "name": "provider_customer_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_payment_methods_userId_idx": {
          "name": "billing_payment_methods_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "billing_payment_methods_providerPaymentMethodId_idx": {
          "name": "billing_payment_methods_providerPaymentMethodId_idx",
          "columns": [
            "provider_payment_method_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_payment_methods_user_id_user_id_fk": {
          "name": "billing_payment_methods_user_id_user_id_fk",
          "tableFrom": "billing_payment_methods",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "bpm_gateway_id_fk": {
          "name": "bpm_gateway_id_fk",
          "tableFrom": "billing_payment_methods",
          "tableTo": "billing_payment_gateways",
          "columnsFrom": [
            "gateway_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_payment_methods_id": {
          "name": "billing_payment_methods_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "billing_plan_prices": {
      "name": "billing_plan_prices",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "plan_id": {
          "name": "plan_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "duration": {
          "name": "duration",
          "type": "enum('7day','1month','3months','6months','1year')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "price_cents": {
          "name": "price_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "provider_price_id": {
          "name": "provider_price_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_plan_prices_planId_idx": {
          "name": "billing_plan_prices_planId_idx",
          "columns": [
            "plan_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_plan_prices_plan_id_billing_plans_id_fk": {
          "name": "billing_plan_prices_plan_id_billing_plans_id_fk",
          "tableFrom": "billing_plan_prices",
          "tableTo": "billing_plans",
          "columnsFrom": [
            "plan_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_plan_prices_id": {
          "name": "billing_plan_prices_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_plan_prices_planId_duration_unique": {
          "name": "billing_plan_prices_planId_duration_unique",
          "columns": [
            "plan_id",
            "duration"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_plans": {
      "name": "billing_plans",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "product_id": {
          "name": "product_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "resource_limits": {
          "name": "resource_limits",
          "type": "json",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('{}')"
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "is_public": {
          "name": "is_public",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "sort_order": {
          "name": "sort_order",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "provider_plan_id": {
          "name": "provider_plan_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_plans_productId_idx": {
          "name": "billing_plans_productId_idx",
          "columns": [
            "product_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_plans_product_id_billing_products_id_fk": {
          "name": "billing_plans_product_id_billing_products_id_fk",
          "tableFrom": "billing_plans",
          "tableTo": "billing_products",
          "columnsFrom": [
            "product_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_plans_id": {
          "name": "billing_plans_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "billing_products": {
      "name": "billing_products",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "category_id": {
          "name": "category_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "slug": {
          "name": "slug",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "icon": {
          "name": "icon",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "cover_image": {
          "name": "cover_image",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "inherit_icon": {
          "name": "inherit_icon",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "inherit_cover_image": {
          "name": "inherit_cover_image",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "is_featured": {
          "name": "is_featured",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "sort_order": {
          "name": "sort_order",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_products_categoryId_idx": {
          "name": "billing_products_categoryId_idx",
          "columns": [
            "category_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_products_category_id_billing_categories_id_fk": {
          "name": "billing_products_category_id_billing_categories_id_fk",
          "tableFrom": "billing_products",
          "tableTo": "billing_categories",
          "columnsFrom": [
            "category_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "set null",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_products_id": {
          "name": "billing_products_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_products_slug_unique": {
          "name": "billing_products_slug_unique",
          "columns": [
            "slug"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_referral_codes": {
      "name": "billing_referral_codes",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "code": {
          "name": "code",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "usage_count": {
          "name": "usage_count",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "billing_referral_codes_user_id_user_id_fk": {
          "name": "billing_referral_codes_user_id_user_id_fk",
          "tableFrom": "billing_referral_codes",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_referral_codes_id": {
          "name": "billing_referral_codes_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_referral_codes_user_id_unique": {
          "name": "billing_referral_codes_user_id_unique",
          "columns": [
            "user_id"
          ]
        },
        "billing_referral_codes_code_unique": {
          "name": "billing_referral_codes_code_unique",
          "columns": [
            "code"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_referral_redemptions": {
      "name": "billing_referral_redemptions",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "code_id": {
          "name": "code_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "referee_id": {
          "name": "referee_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "referrer_id": {
          "name": "referrer_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "first_topup_at": {
          "name": "first_topup_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "brr_code_id_idx": {
          "name": "brr_code_id_idx",
          "columns": [
            "code_id"
          ],
          "isUnique": false
        },
        "brr_referrer_id_idx": {
          "name": "brr_referrer_id_idx",
          "columns": [
            "referrer_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "brr_code_id_fk": {
          "name": "brr_code_id_fk",
          "tableFrom": "billing_referral_redemptions",
          "tableTo": "billing_referral_codes",
          "columnsFrom": [
            "code_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "brr_referee_id_fk": {
          "name": "brr_referee_id_fk",
          "tableFrom": "billing_referral_redemptions",
          "tableTo": "user",
          "columnsFrom": [
            "referee_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "brr_referrer_id_fk": {
          "name": "brr_referrer_id_fk",
          "tableFrom": "billing_referral_redemptions",
          "tableTo": "user",
          "columnsFrom": [
            "referrer_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_referral_redemptions_id": {
          "name": "billing_referral_redemptions_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_referral_redemptions_referee_id_unique": {
          "name": "billing_referral_redemptions_referee_id_unique",
          "columns": [
            "referee_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_subscriptions": {
      "name": "billing_subscriptions",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "plan_id": {
          "name": "plan_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "gateway_id": {
          "name": "gateway_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "price_id": {
          "name": "price_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('active','trialing','past_due','canceled','unpaid','paused')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "current_period_start": {
          "name": "current_period_start",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "current_period_end": {
          "name": "current_period_end",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "trial_start": {
          "name": "trial_start",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "trial_end": {
          "name": "trial_end",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "cancel_at_period_end": {
          "name": "cancel_at_period_end",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "canceled_at": {
          "name": "canceled_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_subscription_id": {
          "name": "provider_subscription_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_customer_id": {
          "name": "provider_customer_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_subscriptions_userId_idx": {
          "name": "billing_subscriptions_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "billing_subscriptions_planId_idx": {
          "name": "billing_subscriptions_planId_idx",
          "columns": [
            "plan_id"
          ],
          "isUnique": false
        },
        "billing_subscriptions_providerSubscriptionId_idx": {
          "name": "billing_subscriptions_providerSubscriptionId_idx",
          "columns": [
            "provider_subscription_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_subscriptions_user_id_user_id_fk": {
          "name": "billing_subscriptions_user_id_user_id_fk",
          "tableFrom": "billing_subscriptions",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_subscriptions_plan_id_billing_plans_id_fk": {
          "name": "billing_subscriptions_plan_id_billing_plans_id_fk",
          "tableFrom": "billing_subscriptions",
          "tableTo": "billing_plans",
          "columnsFrom": [
            "plan_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_subscriptions_gateway_id_billing_payment_gateways_id_fk": {
          "name": "billing_subscriptions_gateway_id_billing_payment_gateways_id_fk",
          "tableFrom": "billing_subscriptions",
          "tableTo": "billing_payment_gateways",
          "columnsFrom": [
            "gateway_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_subscriptions_price_id_billing_plan_prices_id_fk": {
          "name": "billing_subscriptions_price_id_billing_plan_prices_id_fk",
          "tableFrom": "billing_subscriptions",
          "tableTo": "billing_plan_prices",
          "columnsFrom": [
            "price_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_subscriptions_id": {
          "name": "billing_subscriptions_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "billing_transactions": {
      "name": "billing_transactions",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "invoice_id": {
          "name": "invoice_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "payment_method_id": {
          "name": "payment_method_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "gateway_id": {
          "name": "gateway_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "type": {
          "name": "type",
          "type": "enum('payment','refund','chargeback','adjustment')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'payment'"
        },
        "status": {
          "name": "status",
          "type": "enum('pending','succeeded','failed','canceled','refunded')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'pending'"
        },
        "amount_cents": {
          "name": "amount_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "failure_message": {
          "name": "failure_message",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_transaction_id": {
          "name": "provider_transaction_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "provider_charge_id": {
          "name": "provider_charge_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_transactions_userId_idx": {
          "name": "billing_transactions_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "billing_transactions_invoiceId_idx": {
          "name": "billing_transactions_invoiceId_idx",
          "columns": [
            "invoice_id"
          ],
          "isUnique": false
        },
        "billing_transactions_providerTransactionId_idx": {
          "name": "billing_transactions_providerTransactionId_idx",
          "columns": [
            "provider_transaction_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_transactions_user_id_user_id_fk": {
          "name": "billing_transactions_user_id_user_id_fk",
          "tableFrom": "billing_transactions",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_transactions_invoice_id_billing_invoices_id_fk": {
          "name": "billing_transactions_invoice_id_billing_invoices_id_fk",
          "tableFrom": "billing_transactions",
          "tableTo": "billing_invoices",
          "columnsFrom": [
            "invoice_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_transactions_gateway_id_billing_payment_gateways_id_fk": {
          "name": "billing_transactions_gateway_id_billing_payment_gateways_id_fk",
          "tableFrom": "billing_transactions",
          "tableTo": "billing_payment_gateways",
          "columnsFrom": [
            "gateway_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "bt_payment_method_id_fk": {
          "name": "bt_payment_method_id_fk",
          "tableFrom": "billing_transactions",
          "tableTo": "billing_payment_methods",
          "columnsFrom": [
            "payment_method_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_transactions_id": {
          "name": "billing_transactions_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "billing_wallet": {
      "name": "billing_wallet",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "balance_cents": {
          "name": "balance_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "auto_top_up_enabled": {
          "name": "auto_top_up_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "auto_top_up_threshold_cents": {
          "name": "auto_top_up_threshold_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "auto_top_up_amount_cents": {
          "name": "auto_top_up_amount_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {
        "billing_wallet_user_id_user_id_fk": {
          "name": "billing_wallet_user_id_user_id_fk",
          "tableFrom": "billing_wallet",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_wallet_id": {
          "name": "billing_wallet_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "billing_wallet_user_id_unique": {
          "name": "billing_wallet_user_id_unique",
          "columns": [
            "user_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "billing_wallet_transactions": {
      "name": "billing_wallet_transactions",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "invoice_id": {
          "name": "invoice_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "amount_cents": {
          "name": "amount_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "balance_after_cents": {
          "name": "balance_after_cents",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "currency": {
          "name": "currency",
          "type": "varchar(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'USD'"
        },
        "type": {
          "name": "type",
          "type": "enum('topup','refund','charge','adjustment','expired')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "billing_wallet_transactions_userId_idx": {
          "name": "billing_wallet_transactions_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "billing_wallet_transactions_invoiceId_idx": {
          "name": "billing_wallet_transactions_invoiceId_idx",
          "columns": [
            "invoice_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "billing_wallet_transactions_user_id_user_id_fk": {
          "name": "billing_wallet_transactions_user_id_user_id_fk",
          "tableFrom": "billing_wallet_transactions",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "billing_wallet_transactions_invoice_id_billing_invoices_id_fk": {
          "name": "billing_wallet_transactions_invoice_id_billing_invoices_id_fk",
          "tableFrom": "billing_wallet_transactions",
          "tableTo": "billing_invoices",
          "columnsFrom": [
            "invoice_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "billing_wallet_transactions_id": {
          "name": "billing_wallet_transactions_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "database_hosts": {
      "name": "database_hosts",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "host": {
          "name": "host",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "port": {
          "name": "port",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 3306
        },
        "username": {
          "name": "username",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "password": {
          "name": "password",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "max_databases": {
          "name": "max_databases",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "database_hosts_id": {
          "name": "database_hosts_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "egg_variables": {
      "name": "egg_variables",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "egg_id": {
          "name": "egg_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "env_variable": {
          "name": "env_variable",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "default_value": {
          "name": "default_value",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "user_viewable": {
          "name": "user_viewable",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "user_editable": {
          "name": "user_editable",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "rules": {
          "name": "rules",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "egg_variables_eggId_idx": {
          "name": "egg_variables_eggId_idx",
          "columns": [
            "egg_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "egg_variables_egg_id_eggs_id_fk": {
          "name": "egg_variables_egg_id_eggs_id_fk",
          "tableFrom": "egg_variables",
          "tableTo": "eggs",
          "columnsFrom": [
            "egg_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "egg_variables_id": {
          "name": "egg_variables_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "eggs": {
      "name": "eggs",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "nest_id": {
          "name": "nest_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_from": {
          "name": "config_from",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "features": {
          "name": "features",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "docker_images": {
          "name": "docker_images",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "stop_command": {
          "name": "stop_command",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "startup": {
          "name": "startup",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_files": {
          "name": "config_files",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "config_startup": {
          "name": "config_startup",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "config_stop": {
          "name": "config_stop",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "config_logs": {
          "name": "config_logs",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "script_install": {
          "name": "script_install",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "script_entry": {
          "name": "script_entry",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": "'bash'"
        },
        "script_container": {
          "name": "script_container",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "script_extension": {
          "name": "script_extension",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": "'sh'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "eggs_nestId_idx": {
          "name": "eggs_nestId_idx",
          "columns": [
            "nest_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "eggs_nest_id_nests_id_fk": {
          "name": "eggs_nest_id_nests_id_fk",
          "tableFrom": "eggs",
          "tableTo": "nests",
          "columnsFrom": [
            "nest_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "eggs_id": {
          "name": "eggs_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "eggs_uuid_unique": {
          "name": "eggs_uuid_unique",
          "columns": [
            "uuid"
          ]
        }
      },
      "checkConstraint": {}
    },
    "locations": {
      "name": "locations",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "short": {
          "name": "short",
          "type": "varchar(60)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "long": {
          "name": "long",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "locations_id": {
          "name": "locations_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "nodes": {
      "name": "nodes",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "location_id": {
          "name": "location_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "fqdn": {
          "name": "fqdn",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "scheme": {
          "name": "scheme",
          "type": "varchar(10)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'https'"
        },
        "memory": {
          "name": "memory",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "memory_overallocate": {
          "name": "memory_overallocate",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "disk": {
          "name": "disk",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "disk_overallocate": {
          "name": "disk_overallocate",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "upload_size": {
          "name": "upload_size",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 100
        },
        "daemon_listen": {
          "name": "daemon_listen",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 8080
        },
        "daemon_sftp": {
          "name": "daemon_sftp",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 2022
        },
        "daemon_base": {
          "name": "daemon_base",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'/var/lib/pterodactyl'"
        },
        "maintenance_mode": {
          "name": "maintenance_mode",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "token_id": {
          "name": "token_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "token": {
          "name": "token",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "nodes_locationId_idx": {
          "name": "nodes_locationId_idx",
          "columns": [
            "location_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "nodes_location_id_locations_id_fk": {
          "name": "nodes_location_id_locations_id_fk",
          "tableFrom": "nodes",
          "tableTo": "locations",
          "columnsFrom": [
            "location_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "nodes_id": {
          "name": "nodes_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "nodes_uuid_unique": {
          "name": "nodes_uuid_unique",
          "columns": [
            "uuid"
          ]
        },
        "nodes_tokenId_unique": {
          "name": "nodes_tokenId_unique",
          "columns": [
            "token_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "nests": {
      "name": "nests",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "author": {
          "name": "author",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "nests_id": {
          "name": "nests_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "nests_uuid_unique": {
          "name": "nests_uuid_unique",
          "columns": [
            "uuid"
          ]
        }
      },
      "checkConstraint": {}
    },
    "mounts": {
      "name": "mounts",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "source": {
          "name": "source",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "target": {
          "name": "target",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "read_only": {
          "name": "read_only",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "user_mountable": {
          "name": "user_mountable",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "mounts_id": {
          "name": "mounts_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "mounts_uuid_unique": {
          "name": "mounts_uuid_unique",
          "columns": [
            "uuid"
          ]
        }
      },
      "checkConstraint": {}
    },
    "servers": {
      "name": "servers",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid_short": {
          "name": "uuid_short",
          "type": "varchar(8)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "node_id": {
          "name": "node_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "egg_id": {
          "name": "egg_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "allocation_id": {
          "name": "allocation_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "varchar(30)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "''"
        },
        "power_state": {
          "name": "power_state",
          "type": "varchar(20)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false,
          "default": "'offline'"
        },
        "suspended": {
          "name": "suspended",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "memory": {
          "name": "memory",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "disk": {
          "name": "disk",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "cpu": {
          "name": "cpu",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "swap": {
          "name": "swap",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "io": {
          "name": "io",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 500
        },
        "threads": {
          "name": "threads",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "oom_disabled": {
          "name": "oom_disabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "image": {
          "name": "image",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "startup": {
          "name": "startup",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "skip_scripts": {
          "name": "skip_scripts",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "invocation": {
          "name": "invocation",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "subscription_id": {
          "name": "subscription_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "servers_userId_idx": {
          "name": "servers_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "servers_nodeId_idx": {
          "name": "servers_nodeId_idx",
          "columns": [
            "node_id"
          ],
          "isUnique": false
        },
        "servers_eggId_idx": {
          "name": "servers_eggId_idx",
          "columns": [
            "egg_id"
          ],
          "isUnique": false
        },
        "servers_subscriptionId_idx": {
          "name": "servers_subscriptionId_idx",
          "columns": [
            "subscription_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "servers_user_id_user_id_fk": {
          "name": "servers_user_id_user_id_fk",
          "tableFrom": "servers",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "servers_node_id_nodes_id_fk": {
          "name": "servers_node_id_nodes_id_fk",
          "tableFrom": "servers",
          "tableTo": "nodes",
          "columnsFrom": [
            "node_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "servers_egg_id_eggs_id_fk": {
          "name": "servers_egg_id_eggs_id_fk",
          "tableFrom": "servers",
          "tableTo": "eggs",
          "columnsFrom": [
            "egg_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        },
        "servers_allocation_id_node_allocations_id_fk": {
          "name": "servers_allocation_id_node_allocations_id_fk",
          "tableFrom": "servers",
          "tableTo": "node_allocations",
          "columnsFrom": [
            "allocation_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "servers_id": {
          "name": "servers_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "servers_uuid_unique": {
          "name": "servers_uuid_unique",
          "columns": [
            "uuid"
          ]
        },
        "servers_uuid_short_unique": {
          "name": "servers_uuid_short_unique",
          "columns": [
            "uuid_short"
          ]
        }
      },
      "checkConstraint": {}
    },
    "server_variables": {
      "name": "server_variables",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "variable_id": {
          "name": "variable_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "variable_value": {
          "name": "variable_value",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('')"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "server_variables_serverId_idx": {
          "name": "server_variables_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "server_variables_server_id_servers_id_fk": {
          "name": "server_variables_server_id_servers_id_fk",
          "tableFrom": "server_variables",
          "tableTo": "servers",
          "columnsFrom": [
            "server_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "server_variables_variable_id_egg_variables_id_fk": {
          "name": "server_variables_variable_id_egg_variables_id_fk",
          "tableFrom": "server_variables",
          "tableTo": "egg_variables",
          "columnsFrom": [
            "variable_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "server_variables_id": {
          "name": "server_variables_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "server_variables_server_variable_unique": {
          "name": "server_variables_server_variable_unique",
          "columns": [
            "server_id",
            "variable_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "server_mounts": {
      "name": "server_mounts",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "mount_id": {
          "name": "mount_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "server_mounts_serverId_idx": {
          "name": "server_mounts_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "server_mounts_server_id_servers_id_fk": {
          "name": "server_mounts_server_id_servers_id_fk",
          "tableFrom": "server_mounts",
          "tableTo": "servers",
          "columnsFrom": [
            "server_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "server_mounts_mount_id_mounts_id_fk": {
          "name": "server_mounts_mount_id_mounts_id_fk",
          "tableFrom": "server_mounts",
          "tableTo": "mounts",
          "columnsFrom": [
            "mount_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "server_mounts_id": {
          "name": "server_mounts_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "server_mounts_unique": {
          "name": "server_mounts_unique",
          "columns": [
            "server_id",
            "mount_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "server_databases": {
      "name": "server_databases",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "uuid": {
          "name": "uuid",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "host_id": {
          "name": "host_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "database": {
          "name": "database",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "username": {
          "name": "username",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "max_connections": {
          "name": "max_connections",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "remote": {
          "name": "remote",
          "type": "varchar(15)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'%'"
        },
        "password": {
          "name": "password",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "server_databases_serverId_idx": {
          "name": "server_databases_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "server_databases_server_id_servers_id_fk": {
          "name": "server_databases_server_id_servers_id_fk",
          "tableFrom": "server_databases",
          "tableTo": "servers",
          "columnsFrom": [
            "server_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "server_databases_host_id_database_hosts_id_fk": {
          "name": "server_databases_host_id_database_hosts_id_fk",
          "tableFrom": "server_databases",
          "tableTo": "database_hosts",
          "columnsFrom": [
            "host_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "no action",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "server_databases_id": {
          "name": "server_databases_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "server_databases_uuid_unique": {
          "name": "server_databases_uuid_unique",
          "columns": [
            "uuid"
          ]
        }
      },
      "checkConstraint": {}
    },
    "schedule_tasks": {
      "name": "schedule_tasks",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "schedule_id": {
          "name": "schedule_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "sequence_id": {
          "name": "sequence_id",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "action": {
          "name": "action",
          "type": "varchar(60)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "payload": {
          "name": "payload",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "time_offset": {
          "name": "time_offset",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "is_queued": {
          "name": "is_queued",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "continue_on_failure": {
          "name": "continue_on_failure",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "schedule_tasks_scheduleId_idx": {
          "name": "schedule_tasks_scheduleId_idx",
          "columns": [
            "schedule_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "schedule_tasks_schedule_id_schedules_id_fk": {
          "name": "schedule_tasks_schedule_id_schedules_id_fk",
          "tableFrom": "schedule_tasks",
          "tableTo": "schedules",
          "columnsFrom": [
            "schedule_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "schedule_tasks_id": {
          "name": "schedule_tasks_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "schedules": {
      "name": "schedules",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "cron_second": {
          "name": "cron_second",
          "type": "varchar(30)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'0'"
        },
        "cron_minute": {
          "name": "cron_minute",
          "type": "varchar(30)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "cron_hour": {
          "name": "cron_hour",
          "type": "varchar(30)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "cron_day_of_week": {
          "name": "cron_day_of_week",
          "type": "varchar(30)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "cron_day_of_month": {
          "name": "cron_day_of_month",
          "type": "varchar(30)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "is_active": {
          "name": "is_active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "is_processing": {
          "name": "is_processing",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "timezone_offset": {
          "name": "timezone_offset",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_run_at": {
          "name": "last_run_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "next_run_at": {
          "name": "next_run_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "schedules_serverId_idx": {
          "name": "schedules_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "schedules_server_id_servers_id_fk": {
          "name": "schedules_server_id_servers_id_fk",
          "tableFrom": "schedules",
          "tableTo": "servers",
          "columnsFrom": [
            "server_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "schedules_id": {
          "name": "schedules_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "subusers": {
      "name": "subusers",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "server_id": {
          "name": "server_id",
          "type": "varchar(36)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permissions": {
          "name": "permissions",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "('[]')"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "subusers_userId_idx": {
          "name": "subusers_userId_idx",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "subusers_serverId_idx": {
          "name": "subusers_serverId_idx",
          "columns": [
            "server_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {
        "subusers_user_id_user_id_fk": {
          "name": "subusers_user_id_user_id_fk",
          "tableFrom": "subusers",
          "tableTo": "user",
          "columnsFrom": [
            "user_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        },
        "subusers_server_id_servers_id_fk": {
          "name": "subusers_server_id_servers_id_fk",
          "tableFrom": "subusers",
          "tableTo": "servers",
          "columnsFrom": [
            "server_id"
          ],
          "columnsTo": [
            "id"
          ],
          "onDelete": "cascade",
          "onUpdate": "no action"
        }
      },
      "compositePrimaryKeys": {
        "subusers_id": {
          "name": "subusers_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {
        "subusers_user_server_unique": {
          "name": "subusers_user_server_unique",
          "columns": [
            "user_id",
            "server_id"
          ]
        }
      },
      "checkConstraint": {}
    },
    "settings": {
      "name": "settings",
      "columns": {
        "key": {
          "name": "key",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "value": {
          "name": "value",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "updated_at": {
          "name": "updated_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "settings_key": {
          "name": "settings_key",
          "columns": [
            "key"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    }
  },
  "views": {},
  "_meta": {
    "schemas": {},
    "tables": {},
    "columns": {}
  },
  "internal": {
    "tables": {},
    "indexes": {}
  }
}