{
  "version": "5",
  "dialect": "mysql",
  "id": "d2895cb4-d52e-49a2-a2a7-59032a09a6bd",
  "prevId": "59eb2ccf-a3a2-4fb1-acdf-d059fa85eb36",
  "tables": {
    "account": {
      "name": "account",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(64)",
          "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
        },
        "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
        },
        "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
        },
        "id_token": {
          "name": "id_token",
          "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,
          "default": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "account_user_id": {
          "name": "account_user_id",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "account_id": {
          "name": "account_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "apikey": {
      "name": "apikey",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_id": {
          "name": "config_id",
          "type": "varchar(255)",
          "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(32)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "prefix": {
          "name": "prefix",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "key": {
          "name": "key",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "reference_id": {
          "name": "reference_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "refill_interval": {
          "name": "refill_interval",
          "type": "bigint",
          "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": true,
          "autoincrement": false,
          "default": true
        },
        "rate_limit_enabled": {
          "name": "rate_limit_enabled",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": true
        },
        "rate_limit_time_window": {
          "name": "rate_limit_time_window",
          "type": "bigint",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        },
        "permissions": {
          "name": "permissions",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "metadata": {
          "name": "metadata",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "apikey_config_id": {
          "name": "apikey_config_id",
          "columns": [
            "config_id"
          ],
          "isUnique": false
        },
        "apikey_reference_id": {
          "name": "apikey_reference_id",
          "columns": [
            "reference_id"
          ],
          "isUnique": false
        },
        "apikey_key": {
          "name": "apikey_key",
          "columns": [
            "key"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "apikey_id": {
          "name": "apikey_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "session": {
      "name": "session",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "active_organization_id": {
          "name": "active_organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "active_team_id": {
          "name": "active_team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "token": {
          "name": "token",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expires_at": {
          "name": "expires_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
        },
        "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "session_token": {
          "name": "session_token",
          "columns": [
            "token"
          ],
          "isUnique": true
        },
        "session_user_id": {
          "name": "session_user_id",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "session_id": {
          "name": "session_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "user": {
      "name": "user",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "user_email": {
          "name": "user_email",
          "columns": [
            "email"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "user_id": {
          "name": "user_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "verification": {
      "name": "verification",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "verification_identifier": {
          "name": "verification_identifier",
          "columns": [
            "identifier"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "verification_id": {
          "name": "verification_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "desktop_handoff_grant": {
      "name": "desktop_handoff_grant",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "session_token": {
          "name": "session_token",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "consumed_at": {
          "name": "consumed_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())"
        }
      },
      "indexes": {
        "desktop_handoff_grant_user_id": {
          "name": "desktop_handoff_grant_user_id",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "desktop_handoff_grant_expires_at": {
          "name": "desktop_handoff_grant_expires_at",
          "columns": [
            "expires_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "desktop_handoff_grant_id": {
          "name": "desktop_handoff_grant_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "invitation": {
      "name": "invitation",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "email": {
          "name": "email",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "role": {
          "name": "role",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "varchar(32)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'pending'"
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "inviter_id": {
          "name": "inviter_id",
          "type": "varchar(64)",
          "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())"
        }
      },
      "indexes": {
        "invitation_organization_id": {
          "name": "invitation_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "invitation_email": {
          "name": "invitation_email",
          "columns": [
            "email"
          ],
          "isUnique": false
        },
        "invitation_status": {
          "name": "invitation_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "invitation_team_id": {
          "name": "invitation_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "invitation_id": {
          "name": "invitation_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "member": {
      "name": "member",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "user_id": {
          "name": "user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "role": {
          "name": "role",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'member'"
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "member_organization_id": {
          "name": "member_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "member_user_id": {
          "name": "member_user_id",
          "columns": [
            "user_id"
          ],
          "isUnique": false
        },
        "member_organization_user": {
          "name": "member_organization_user",
          "columns": [
            "organization_id",
            "user_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "member_id": {
          "name": "member_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "organization_role": {
      "name": "organization_role",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "role": {
          "name": "role",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "permission": {
          "name": "permission",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "organization_role_organization_id": {
          "name": "organization_role_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "organization_role_name": {
          "name": "organization_role_name",
          "columns": [
            "organization_id",
            "role"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "organization_role_id": {
          "name": "organization_role_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "organization": {
      "name": "organization",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "slug": {
          "name": "slug",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "logo": {
          "name": "logo",
          "type": "varchar(2048)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "allowed_email_domains": {
          "name": "allowed_email_domains",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "metadata": {
          "name": "metadata",
          "type": "json",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "organization_slug": {
          "name": "organization_slug",
          "columns": [
            "slug"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "organization_id": {
          "name": "organization_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "temp_template_sharing": {
      "name": "temp_template_sharing",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "creator_member_id": {
          "name": "creator_member_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "creator_user_id": {
          "name": "creator_user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "template_json": {
          "name": "template_json",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "temp_template_sharing_org_id": {
          "name": "temp_template_sharing_org_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "temp_template_sharing_creator_member_id": {
          "name": "temp_template_sharing_creator_member_id",
          "columns": [
            "creator_member_id"
          ],
          "isUnique": false
        },
        "temp_template_sharing_creator_user_id": {
          "name": "temp_template_sharing_creator_user_id",
          "columns": [
            "creator_user_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "temp_template_sharing_id": {
          "name": "temp_template_sharing_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "llm_provider_access": {
      "name": "llm_provider_access",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "llm_provider_id": {
          "name": "llm_provider_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "llm_provider_access_llm_provider_id": {
          "name": "llm_provider_access_llm_provider_id",
          "columns": [
            "llm_provider_id"
          ],
          "isUnique": false
        },
        "llm_provider_access_org_membership_id": {
          "name": "llm_provider_access_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "llm_provider_access_team_id": {
          "name": "llm_provider_access_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "llm_provider_access_provider_org_membership": {
          "name": "llm_provider_access_provider_org_membership",
          "columns": [
            "llm_provider_id",
            "org_membership_id"
          ],
          "isUnique": true
        },
        "llm_provider_access_provider_team": {
          "name": "llm_provider_access_provider_team",
          "columns": [
            "llm_provider_id",
            "team_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "llm_provider_access_id": {
          "name": "llm_provider_access_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "llm_provider_model": {
      "name": "llm_provider_model",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "llm_provider_id": {
          "name": "llm_provider_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "model_id": {
          "name": "model_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "model_config": {
          "name": "model_config",
          "type": "json",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "llm_provider_model_llm_provider_id": {
          "name": "llm_provider_model_llm_provider_id",
          "columns": [
            "llm_provider_id"
          ],
          "isUnique": false
        },
        "llm_provider_model_model_id": {
          "name": "llm_provider_model_model_id",
          "columns": [
            "model_id"
          ],
          "isUnique": false
        },
        "llm_provider_model_provider_model": {
          "name": "llm_provider_model_provider_model",
          "columns": [
            "llm_provider_id",
            "model_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "llm_provider_model_id": {
          "name": "llm_provider_model_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "llm_provider": {
      "name": "llm_provider",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "source": {
          "name": "source",
          "type": "enum('models_dev','custom')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider_id": {
          "name": "provider_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider_config": {
          "name": "provider_config",
          "type": "json",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "api_key": {
          "name": "api_key",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "llm_provider_organization_id": {
          "name": "llm_provider_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "llm_provider_created_by_org_membership_id": {
          "name": "llm_provider_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "llm_provider_source": {
          "name": "llm_provider_source",
          "columns": [
            "source"
          ],
          "isUnique": false
        },
        "llm_provider_provider_id": {
          "name": "llm_provider_provider_id",
          "columns": [
            "provider_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "llm_provider_id": {
          "name": "llm_provider_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "config_object_access_grant": {
      "name": "config_object_access_grant",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_object_id": {
          "name": "config_object_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "org_wide": {
          "name": "org_wide",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "role": {
          "name": "role",
          "type": "enum('viewer','editor','manager')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "removed_at": {
          "name": "removed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "config_object_access_grant_organization_id": {
          "name": "config_object_access_grant_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "config_object_access_grant_config_object_id": {
          "name": "config_object_access_grant_config_object_id",
          "columns": [
            "config_object_id"
          ],
          "isUnique": false
        },
        "config_object_access_grant_org_membership_id": {
          "name": "config_object_access_grant_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "config_object_access_grant_team_id": {
          "name": "config_object_access_grant_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "config_object_access_grant_org_wide": {
          "name": "config_object_access_grant_org_wide",
          "columns": [
            "org_wide"
          ],
          "isUnique": false
        },
        "config_object_access_grant_object_org_membership": {
          "name": "config_object_access_grant_object_org_membership",
          "columns": [
            "config_object_id",
            "org_membership_id"
          ],
          "isUnique": true
        },
        "config_object_access_grant_object_team": {
          "name": "config_object_access_grant_object_team",
          "columns": [
            "config_object_id",
            "team_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "config_object_access_grant_id": {
          "name": "config_object_access_grant_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "config_object": {
      "name": "config_object",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "object_type": {
          "name": "object_type",
          "type": "enum('skill','agent','command','tool','mcp','hook','context','custom')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "source_mode": {
          "name": "source_mode",
          "type": "enum('cloud','import','connector')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "title": {
          "name": "title",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "search_text": {
          "name": "search_text",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "current_file_name": {
          "name": "current_file_name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "current_file_extension": {
          "name": "current_file_extension",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "current_relative_path": {
          "name": "current_relative_path",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('active','inactive','deleted','archived','ingestion_error')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        },
        "deleted_at": {
          "name": "deleted_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "config_object_organization_id": {
          "name": "config_object_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "config_object_type": {
          "name": "config_object_type",
          "columns": [
            "object_type"
          ],
          "isUnique": false
        },
        "config_object_source_mode": {
          "name": "config_object_source_mode",
          "columns": [
            "source_mode"
          ],
          "isUnique": false
        },
        "config_object_status": {
          "name": "config_object_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "config_object_created_by_org_membership_id": {
          "name": "config_object_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "config_object_connector_instance_id": {
          "name": "config_object_connector_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "config_object_current_relative_path": {
          "name": "config_object_current_relative_path",
          "columns": [
            "current_relative_path"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "config_object_id": {
          "name": "config_object_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "config_object_version": {
      "name": "config_object_version",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_object_id": {
          "name": "config_object_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "normalized_payload_json": {
          "name": "normalized_payload_json",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "raw_source_text": {
          "name": "raw_source_text",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "schema_version": {
          "name": "schema_version",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_via": {
          "name": "created_via",
          "type": "enum('cloud','import','connector','system')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "connector_sync_event_id": {
          "name": "connector_sync_event_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "source_revision_ref": {
          "name": "source_revision_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "is_deleted_version": {
          "name": "is_deleted_version",
          "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())"
        }
      },
      "indexes": {
        "config_object_version_organization_id": {
          "name": "config_object_version_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "config_object_version_config_object_id": {
          "name": "config_object_version_config_object_id",
          "columns": [
            "config_object_id"
          ],
          "isUnique": false
        },
        "config_object_version_created_by_org_membership_id": {
          "name": "config_object_version_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "config_object_version_connector_sync_event_id": {
          "name": "config_object_version_connector_sync_event_id",
          "columns": [
            "connector_sync_event_id"
          ],
          "isUnique": false
        },
        "config_object_version_source_revision_ref": {
          "name": "config_object_version_source_revision_ref",
          "columns": [
            "source_revision_ref"
          ],
          "isUnique": false
        },
        "config_object_version_lookup_latest": {
          "name": "config_object_version_lookup_latest",
          "columns": [
            "config_object_id",
            "created_at",
            "id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "config_object_version_id": {
          "name": "config_object_version_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_account": {
      "name": "connector_account",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "external_account_ref": {
          "name": "external_account_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "display_name": {
          "name": "display_name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('active','inactive','disconnected','error')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "metadata_json": {
          "name": "metadata_json",
          "type": "json",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "connector_account_organization_id": {
          "name": "connector_account_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_account_created_by_org_membership_id": {
          "name": "connector_account_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "connector_account_connector_type": {
          "name": "connector_account_connector_type",
          "columns": [
            "connector_type"
          ],
          "isUnique": false
        },
        "connector_account_status": {
          "name": "connector_account_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "connector_account_org_type_remote_id": {
          "name": "connector_account_org_type_remote_id",
          "columns": [
            "organization_id",
            "connector_type",
            "remote_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_account_id": {
          "name": "connector_account_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_instance_access_grant": {
      "name": "connector_instance_access_grant",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "org_wide": {
          "name": "org_wide",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "role": {
          "name": "role",
          "type": "enum('viewer','editor','manager')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "removed_at": {
          "name": "removed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "connector_instance_access_grant_organization_id": {
          "name": "connector_instance_access_grant_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_instance_access_grant_instance_id": {
          "name": "connector_instance_access_grant_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "connector_instance_access_grant_org_membership_id": {
          "name": "connector_instance_access_grant_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "connector_instance_access_grant_team_id": {
          "name": "connector_instance_access_grant_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "connector_instance_access_grant_org_wide": {
          "name": "connector_instance_access_grant_org_wide",
          "columns": [
            "org_wide"
          ],
          "isUnique": false
        },
        "connector_instance_access_grant_instance_org_membership": {
          "name": "connector_instance_access_grant_instance_org_membership",
          "columns": [
            "connector_instance_id",
            "org_membership_id"
          ],
          "isUnique": true
        },
        "connector_instance_access_grant_instance_team": {
          "name": "connector_instance_access_grant_instance_team",
          "columns": [
            "connector_instance_id",
            "team_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_instance_access_grant_id": {
          "name": "connector_instance_access_grant_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_instance": {
      "name": "connector_instance",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_account_id": {
          "name": "connector_account_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('active','disabled','archived','error')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "instance_config_json": {
          "name": "instance_config_json",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_synced_at": {
          "name": "last_synced_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_sync_status": {
          "name": "last_sync_status",
          "type": "enum('pending','queued','running','completed','failed','partial','ignored')",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_sync_cursor": {
          "name": "last_sync_cursor",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "connector_instance_organization_id": {
          "name": "connector_instance_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_instance_connector_account_id": {
          "name": "connector_instance_connector_account_id",
          "columns": [
            "connector_account_id"
          ],
          "isUnique": false
        },
        "connector_instance_created_by_org_membership_id": {
          "name": "connector_instance_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "connector_instance_connector_type": {
          "name": "connector_instance_connector_type",
          "columns": [
            "connector_type"
          ],
          "isUnique": false
        },
        "connector_instance_status": {
          "name": "connector_instance_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "connector_instance_org_name": {
          "name": "connector_instance_org_name",
          "columns": [
            "organization_id",
            "name"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_instance_id": {
          "name": "connector_instance_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_mapping": {
      "name": "connector_mapping",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_target_id": {
          "name": "connector_target_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "mapping_kind": {
          "name": "mapping_kind",
          "type": "enum('path','api','custom')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "selector": {
          "name": "selector",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "object_type": {
          "name": "object_type",
          "type": "enum('skill','agent','command','tool','mcp','hook','context','custom')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "plugin_id": {
          "name": "plugin_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "auto_add_to_plugin": {
          "name": "auto_add_to_plugin",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "mapping_config_json": {
          "name": "mapping_config_json",
          "type": "json",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "connector_mapping_organization_id": {
          "name": "connector_mapping_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_mapping_connector_instance_id": {
          "name": "connector_mapping_connector_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "connector_mapping_connector_target_id": {
          "name": "connector_mapping_connector_target_id",
          "columns": [
            "connector_target_id"
          ],
          "isUnique": false
        },
        "connector_mapping_object_type": {
          "name": "connector_mapping_object_type",
          "columns": [
            "object_type"
          ],
          "isUnique": false
        },
        "connector_mapping_plugin_id": {
          "name": "connector_mapping_plugin_id",
          "columns": [
            "plugin_id"
          ],
          "isUnique": false
        },
        "connector_mapping_target_selector_object_type": {
          "name": "connector_mapping_target_selector_object_type",
          "columns": [
            "connector_target_id",
            "selector",
            "object_type"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_mapping_id": {
          "name": "connector_mapping_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_source_binding": {
      "name": "connector_source_binding",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_object_id": {
          "name": "config_object_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_target_id": {
          "name": "connector_target_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_mapping_id": {
          "name": "connector_mapping_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "external_locator": {
          "name": "external_locator",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "external_stable_ref": {
          "name": "external_stable_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_seen_source_revision_ref": {
          "name": "last_seen_source_revision_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('active','inactive','deleted','archived','ingestion_error')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        },
        "deleted_at": {
          "name": "deleted_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "connector_source_binding_organization_id": {
          "name": "connector_source_binding_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_source_binding_config_object_id": {
          "name": "connector_source_binding_config_object_id",
          "columns": [
            "config_object_id"
          ],
          "isUnique": false
        },
        "connector_source_binding_connector_instance_id": {
          "name": "connector_source_binding_connector_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "connector_source_binding_connector_target_id": {
          "name": "connector_source_binding_connector_target_id",
          "columns": [
            "connector_target_id"
          ],
          "isUnique": false
        },
        "connector_source_binding_connector_mapping_id": {
          "name": "connector_source_binding_connector_mapping_id",
          "columns": [
            "connector_mapping_id"
          ],
          "isUnique": false
        },
        "connector_source_binding_external_locator": {
          "name": "connector_source_binding_external_locator",
          "columns": [
            "external_locator"
          ],
          "isUnique": false
        },
        "connector_source_binding_config_object": {
          "name": "connector_source_binding_config_object",
          "columns": [
            "config_object_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_source_binding_id": {
          "name": "connector_source_binding_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_source_tombstone": {
      "name": "connector_source_tombstone",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_target_id": {
          "name": "connector_target_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_mapping_id": {
          "name": "connector_mapping_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "external_locator": {
          "name": "external_locator",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "former_config_object_id": {
          "name": "former_config_object_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "deleted_in_sync_event_id": {
          "name": "deleted_in_sync_event_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "deleted_source_revision_ref": {
          "name": "deleted_source_revision_ref",
          "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())"
        }
      },
      "indexes": {
        "connector_source_tombstone_organization_id": {
          "name": "connector_source_tombstone_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_source_tombstone_connector_instance_id": {
          "name": "connector_source_tombstone_connector_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "connector_source_tombstone_connector_target_id": {
          "name": "connector_source_tombstone_connector_target_id",
          "columns": [
            "connector_target_id"
          ],
          "isUnique": false
        },
        "connector_source_tombstone_connector_mapping_id": {
          "name": "connector_source_tombstone_connector_mapping_id",
          "columns": [
            "connector_mapping_id"
          ],
          "isUnique": false
        },
        "connector_source_tombstone_external_locator": {
          "name": "connector_source_tombstone_external_locator",
          "columns": [
            "external_locator"
          ],
          "isUnique": false
        },
        "connector_source_tombstone_former_config_object_id": {
          "name": "connector_source_tombstone_former_config_object_id",
          "columns": [
            "former_config_object_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_source_tombstone_id": {
          "name": "connector_source_tombstone_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_sync_event": {
      "name": "connector_sync_event",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_target_id": {
          "name": "connector_target_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "event_type": {
          "name": "event_type",
          "type": "enum('push','installation','installation_repositories','repository','manual_resync')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "external_event_ref": {
          "name": "external_event_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "source_revision_ref": {
          "name": "source_revision_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('pending','queued','running','completed','failed','partial','ignored')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'pending'"
        },
        "summary_json": {
          "name": "summary_json",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "started_at": {
          "name": "started_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "completed_at": {
          "name": "completed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "connector_sync_event_organization_id": {
          "name": "connector_sync_event_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_sync_event_connector_instance_id": {
          "name": "connector_sync_event_connector_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "connector_sync_event_connector_target_id": {
          "name": "connector_sync_event_connector_target_id",
          "columns": [
            "connector_target_id"
          ],
          "isUnique": false
        },
        "connector_sync_event_event_type": {
          "name": "connector_sync_event_event_type",
          "columns": [
            "event_type"
          ],
          "isUnique": false
        },
        "connector_sync_event_status": {
          "name": "connector_sync_event_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "connector_sync_event_source_revision_ref": {
          "name": "connector_sync_event_source_revision_ref",
          "columns": [
            "source_revision_ref"
          ],
          "isUnique": false
        },
        "connector_sync_event_external_event_ref": {
          "name": "connector_sync_event_external_event_ref",
          "columns": [
            "external_event_ref"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_sync_event_id": {
          "name": "connector_sync_event_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "connector_target": {
      "name": "connector_target",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_instance_id": {
          "name": "connector_instance_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "connector_type": {
          "name": "connector_type",
          "type": "enum('github')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "remote_id": {
          "name": "remote_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "target_kind": {
          "name": "target_kind",
          "type": "enum('repository_branch')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "external_target_ref": {
          "name": "external_target_ref",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "target_config_json": {
          "name": "target_config_json",
          "type": "json",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "connector_target_organization_id": {
          "name": "connector_target_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "connector_target_connector_instance_id": {
          "name": "connector_target_connector_instance_id",
          "columns": [
            "connector_instance_id"
          ],
          "isUnique": false
        },
        "connector_target_connector_type": {
          "name": "connector_target_connector_type",
          "columns": [
            "connector_type"
          ],
          "isUnique": false
        },
        "connector_target_target_kind": {
          "name": "connector_target_target_kind",
          "columns": [
            "target_kind"
          ],
          "isUnique": false
        },
        "connector_target_instance_remote_id": {
          "name": "connector_target_instance_remote_id",
          "columns": [
            "connector_instance_id",
            "remote_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "connector_target_id": {
          "name": "connector_target_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "marketplace_access_grant": {
      "name": "marketplace_access_grant",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "marketplace_id": {
          "name": "marketplace_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "org_wide": {
          "name": "org_wide",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "role": {
          "name": "role",
          "type": "enum('viewer','editor','manager')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "removed_at": {
          "name": "removed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "marketplace_access_grant_organization_id": {
          "name": "marketplace_access_grant_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "marketplace_access_grant_marketplace_id": {
          "name": "marketplace_access_grant_marketplace_id",
          "columns": [
            "marketplace_id"
          ],
          "isUnique": false
        },
        "marketplace_access_grant_org_membership_id": {
          "name": "marketplace_access_grant_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "marketplace_access_grant_team_id": {
          "name": "marketplace_access_grant_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "marketplace_access_grant_org_wide": {
          "name": "marketplace_access_grant_org_wide",
          "columns": [
            "org_wide"
          ],
          "isUnique": false
        },
        "marketplace_access_grant_marketplace_org_membership": {
          "name": "marketplace_access_grant_marketplace_org_membership",
          "columns": [
            "marketplace_id",
            "org_membership_id"
          ],
          "isUnique": true
        },
        "marketplace_access_grant_marketplace_team": {
          "name": "marketplace_access_grant_marketplace_team",
          "columns": [
            "marketplace_id",
            "team_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "marketplace_access_grant_id": {
          "name": "marketplace_access_grant_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "marketplace_plugin": {
      "name": "marketplace_plugin",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "marketplace_id": {
          "name": "marketplace_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "plugin_id": {
          "name": "plugin_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "membership_source": {
          "name": "membership_source",
          "type": "enum('manual','connector','api','system')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'manual'"
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "removed_at": {
          "name": "removed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "marketplace_plugin_organization_id": {
          "name": "marketplace_plugin_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "marketplace_plugin_marketplace_id": {
          "name": "marketplace_plugin_marketplace_id",
          "columns": [
            "marketplace_id"
          ],
          "isUnique": false
        },
        "marketplace_plugin_plugin_id": {
          "name": "marketplace_plugin_plugin_id",
          "columns": [
            "plugin_id"
          ],
          "isUnique": false
        },
        "marketplace_plugin_marketplace_plugin": {
          "name": "marketplace_plugin_marketplace_plugin",
          "columns": [
            "marketplace_id",
            "plugin_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "marketplace_plugin_id": {
          "name": "marketplace_plugin_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "marketplace": {
      "name": "marketplace",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "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
        },
        "status": {
          "name": "status",
          "type": "enum('active','inactive','deleted','archived')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        },
        "deleted_at": {
          "name": "deleted_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "marketplace_organization_id": {
          "name": "marketplace_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "marketplace_created_by_org_membership_id": {
          "name": "marketplace_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "marketplace_status": {
          "name": "marketplace_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "marketplace_name": {
          "name": "marketplace_name",
          "columns": [
            "name"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "marketplace_id": {
          "name": "marketplace_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "plugin_access_grant": {
      "name": "plugin_access_grant",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "plugin_id": {
          "name": "plugin_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "org_wide": {
          "name": "org_wide",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": false
        },
        "role": {
          "name": "role",
          "type": "enum('viewer','editor','manager')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "removed_at": {
          "name": "removed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "plugin_access_grant_organization_id": {
          "name": "plugin_access_grant_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "plugin_access_grant_plugin_id": {
          "name": "plugin_access_grant_plugin_id",
          "columns": [
            "plugin_id"
          ],
          "isUnique": false
        },
        "plugin_access_grant_org_membership_id": {
          "name": "plugin_access_grant_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "plugin_access_grant_team_id": {
          "name": "plugin_access_grant_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "plugin_access_grant_org_wide": {
          "name": "plugin_access_grant_org_wide",
          "columns": [
            "org_wide"
          ],
          "isUnique": false
        },
        "plugin_access_grant_plugin_org_membership": {
          "name": "plugin_access_grant_plugin_org_membership",
          "columns": [
            "plugin_id",
            "org_membership_id"
          ],
          "isUnique": true
        },
        "plugin_access_grant_plugin_team": {
          "name": "plugin_access_grant_plugin_team",
          "columns": [
            "plugin_id",
            "team_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "plugin_access_grant_id": {
          "name": "plugin_access_grant_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "plugin_config_object": {
      "name": "plugin_config_object",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "plugin_id": {
          "name": "plugin_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "config_object_id": {
          "name": "config_object_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "membership_source": {
          "name": "membership_source",
          "type": "enum('manual','connector','api','system')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'manual'"
        },
        "connector_mapping_id": {
          "name": "connector_mapping_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "removed_at": {
          "name": "removed_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "plugin_config_object_organization_id": {
          "name": "plugin_config_object_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "plugin_config_object_plugin_id": {
          "name": "plugin_config_object_plugin_id",
          "columns": [
            "plugin_id"
          ],
          "isUnique": false
        },
        "plugin_config_object_config_object_id": {
          "name": "plugin_config_object_config_object_id",
          "columns": [
            "config_object_id"
          ],
          "isUnique": false
        },
        "plugin_config_object_connector_mapping_id": {
          "name": "plugin_config_object_connector_mapping_id",
          "columns": [
            "connector_mapping_id"
          ],
          "isUnique": false
        },
        "plugin_config_object_plugin_config_object": {
          "name": "plugin_config_object_plugin_config_object",
          "columns": [
            "plugin_id",
            "config_object_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "plugin_config_object_id": {
          "name": "plugin_config_object_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "plugin": {
      "name": "plugin",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "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
        },
        "status": {
          "name": "status",
          "type": "enum('active','inactive','deleted','archived')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "'active'"
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        },
        "deleted_at": {
          "name": "deleted_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "plugin_organization_id": {
          "name": "plugin_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "plugin_created_by_org_membership_id": {
          "name": "plugin_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "plugin_status": {
          "name": "plugin_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "plugin_name": {
          "name": "plugin_name",
          "columns": [
            "name"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "plugin_id": {
          "name": "plugin_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "skill_hub_member": {
      "name": "skill_hub_member",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "skill_hub_id": {
          "name": "skill_hub_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "skill_hub_member_skill_hub_id": {
          "name": "skill_hub_member_skill_hub_id",
          "columns": [
            "skill_hub_id"
          ],
          "isUnique": false
        },
        "skill_hub_member_org_membership_id": {
          "name": "skill_hub_member_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "skill_hub_member_team_id": {
          "name": "skill_hub_member_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "skill_hub_member_hub_org_membership": {
          "name": "skill_hub_member_hub_org_membership",
          "columns": [
            "skill_hub_id",
            "org_membership_id"
          ],
          "isUnique": true
        },
        "skill_hub_member_hub_team": {
          "name": "skill_hub_member_hub_team",
          "columns": [
            "skill_hub_id",
            "team_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "skill_hub_member_id": {
          "name": "skill_hub_member_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "skill_hub_skill": {
      "name": "skill_hub_skill",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "skill_hub_id": {
          "name": "skill_hub_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "skill_id": {
          "name": "skill_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "skill_hub_skill_skill_hub_id": {
          "name": "skill_hub_skill_skill_hub_id",
          "columns": [
            "skill_hub_id"
          ],
          "isUnique": false
        },
        "skill_hub_skill_skill_id": {
          "name": "skill_hub_skill_skill_id",
          "columns": [
            "skill_id"
          ],
          "isUnique": false
        },
        "skill_hub_skill_hub_skill": {
          "name": "skill_hub_skill_hub_skill",
          "columns": [
            "skill_hub_id",
            "skill_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "skill_hub_skill_id": {
          "name": "skill_hub_skill_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "skill_hub": {
      "name": "skill_hub",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "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
        },
        "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "skill_hub_organization_id": {
          "name": "skill_hub_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "skill_hub_created_by_org_membership_id": {
          "name": "skill_hub_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "skill_hub_id": {
          "name": "skill_hub_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "skill": {
      "name": "skill",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_org_membership_id": {
          "name": "created_by_org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "title": {
          "name": "title",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "text",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "skill_text": {
          "name": "skill_text",
          "type": "text",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "shared": {
          "name": "shared",
          "type": "enum('org','public')",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "skill_organization_id": {
          "name": "skill_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "skill_created_by_org_membership_id": {
          "name": "skill_created_by_org_membership_id",
          "columns": [
            "created_by_org_membership_id"
          ],
          "isUnique": false
        },
        "skill_shared": {
          "name": "skill_shared",
          "columns": [
            "shared"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "skill_id": {
          "name": "skill_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "team_member": {
      "name": "team_member",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "team_id": {
          "name": "team_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_membership_id": {
          "name": "org_membership_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "team_member_team_id": {
          "name": "team_member_team_id",
          "columns": [
            "team_id"
          ],
          "isUnique": false
        },
        "team_member_org_membership_id": {
          "name": "team_member_org_membership_id",
          "columns": [
            "org_membership_id"
          ],
          "isUnique": false
        },
        "team_member_team_org_membership": {
          "name": "team_member_team_org_membership",
          "columns": [
            "team_id",
            "org_membership_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "team_member_id": {
          "name": "team_member_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "team": {
      "name": "team",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "organization_id": {
          "name": "organization_id",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "team_organization_id": {
          "name": "team_organization_id",
          "columns": [
            "organization_id"
          ],
          "isUnique": false
        },
        "team_organization_name": {
          "name": "team_organization_name",
          "columns": [
            "organization_id",
            "name"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "team_id": {
          "name": "team_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "audit_event": {
      "name": "audit_event",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_id": {
          "name": "org_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "worker_id": {
          "name": "worker_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "actor_user_id": {
          "name": "actor_user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "action": {
          "name": "action",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "payload": {
          "name": "payload",
          "type": "json",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "audit_event_org_id": {
          "name": "audit_event_org_id",
          "columns": [
            "org_id"
          ],
          "isUnique": false
        },
        "audit_event_worker_id": {
          "name": "audit_event_worker_id",
          "columns": [
            "worker_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "audit_event_id": {
          "name": "audit_event_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "daytona_sandbox": {
      "name": "daytona_sandbox",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "worker_id": {
          "name": "worker_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "sandbox_id": {
          "name": "sandbox_id",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "workspace_volume_id": {
          "name": "workspace_volume_id",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "data_volume_id": {
          "name": "data_volume_id",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "signed_preview_url": {
          "name": "signed_preview_url",
          "type": "varchar(2048)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "signed_preview_url_expires_at": {
          "name": "signed_preview_url_expires_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "region": {
          "name": "region",
          "type": "varchar(64)",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "daytona_sandbox_worker_id": {
          "name": "daytona_sandbox_worker_id",
          "columns": [
            "worker_id"
          ],
          "isUnique": true
        },
        "daytona_sandbox_sandbox_id": {
          "name": "daytona_sandbox_sandbox_id",
          "columns": [
            "sandbox_id"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "daytona_sandbox_id": {
          "name": "daytona_sandbox_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "worker_bundle": {
      "name": "worker_bundle",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "worker_id": {
          "name": "worker_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "storage_url": {
          "name": "storage_url",
          "type": "varchar(2048)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        }
      },
      "indexes": {
        "worker_bundle_worker_id": {
          "name": "worker_bundle_worker_id",
          "columns": [
            "worker_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "worker_bundle_id": {
          "name": "worker_bundle_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "worker_instance": {
      "name": "worker_instance",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "worker_id": {
          "name": "worker_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "provider": {
          "name": "provider",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "region": {
          "name": "region",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "url": {
          "name": "url",
          "type": "varchar(2048)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('provisioning','healthy','failed','stopped')",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "worker_instance_worker_id": {
          "name": "worker_instance_worker_id",
          "columns": [
            "worker_id"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "worker_instance_id": {
          "name": "worker_instance_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "worker": {
      "name": "worker",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "org_id": {
          "name": "org_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_by_user_id": {
          "name": "created_by_user_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "name": {
          "name": "name",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "description": {
          "name": "description",
          "type": "varchar(1024)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "destination": {
          "name": "destination",
          "type": "enum('local','cloud')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "status": {
          "name": "status",
          "type": "enum('provisioning','healthy','failed','stopped')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "image_version": {
          "name": "image_version",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "workspace_path": {
          "name": "workspace_path",
          "type": "varchar(1024)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "sandbox_backend": {
          "name": "sandbox_backend",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_heartbeat_at": {
          "name": "last_heartbeat_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        },
        "last_active_at": {
          "name": "last_active_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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "worker_org_id": {
          "name": "worker_org_id",
          "columns": [
            "org_id"
          ],
          "isUnique": false
        },
        "worker_created_by_user_id": {
          "name": "worker_created_by_user_id",
          "columns": [
            "created_by_user_id"
          ],
          "isUnique": false
        },
        "worker_status": {
          "name": "worker_status",
          "columns": [
            "status"
          ],
          "isUnique": false
        },
        "worker_last_heartbeat_at": {
          "name": "worker_last_heartbeat_at",
          "columns": [
            "last_heartbeat_at"
          ],
          "isUnique": false
        },
        "worker_last_active_at": {
          "name": "worker_last_active_at",
          "columns": [
            "last_active_at"
          ],
          "isUnique": false
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "worker_id": {
          "name": "worker_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "worker_token": {
      "name": "worker_token",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "worker_id": {
          "name": "worker_id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "scope": {
          "name": "scope",
          "type": "enum('client','host','activity')",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "token": {
          "name": "token",
          "type": "varchar(128)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": "(now())"
        },
        "revoked_at": {
          "name": "revoked_at",
          "type": "timestamp(3)",
          "primaryKey": false,
          "notNull": false,
          "autoincrement": false
        }
      },
      "indexes": {
        "worker_token_worker_id": {
          "name": "worker_token_worker_id",
          "columns": [
            "worker_id"
          ],
          "isUnique": false
        },
        "worker_token_token": {
          "name": "worker_token_token",
          "columns": [
            "token"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "worker_token_id": {
          "name": "worker_token_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "admin_allowlist": {
      "name": "admin_allowlist",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "email": {
          "name": "email",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "note": {
          "name": "note",
          "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": "CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)"
        }
      },
      "indexes": {
        "admin_allowlist_email": {
          "name": "admin_allowlist_email",
          "columns": [
            "email"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "admin_allowlist_id": {
          "name": "admin_allowlist_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    },
    "rate_limit": {
      "name": "rate_limit",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(64)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "key": {
          "name": "key",
          "type": "varchar(512)",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        },
        "count": {
          "name": "count",
          "type": "int",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false,
          "default": 0
        },
        "last_request": {
          "name": "last_request",
          "type": "bigint",
          "primaryKey": false,
          "notNull": true,
          "autoincrement": false
        }
      },
      "indexes": {
        "rate_limit_key": {
          "name": "rate_limit_key",
          "columns": [
            "key"
          ],
          "isUnique": true
        }
      },
      "foreignKeys": {},
      "compositePrimaryKeys": {
        "rate_limit_id": {
          "name": "rate_limit_id",
          "columns": [
            "id"
          ]
        }
      },
      "uniqueConstraints": {},
      "checkConstraint": {}
    }
  },
  "views": {},
  "_meta": {
    "schemas": {},
    "tables": {},
    "columns": {}
  },
  "internal": {
    "tables": {},
    "indexes": {}
  }
}