Skip to main content

Config Database: organizations, workspaces, and access

airbyte_configs_migrations​

Column NameDatatypeDescription
installed_rankINTPrimary key. Rank of the installed migration.
versionVARCHAR(50)Version number of the migration.
descriptionVARCHAR(200)Description of the migration.
typeVARCHAR(20)Type of migration.
scriptVARCHAR(1000)Script executed for the migration.
checksumINTChecksum of the migration script.
installed_byVARCHAR(100)User who installed the migration.
installed_onTIMESTAMPTimestamp when the migration was installed.
execution_timeINTTime taken to execute the migration.
successBOOLEANIndicates whether the migration was successful.

Indexes and Constraints​

  • Primary Key: (installed_rank)

application​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the application.
user_idUUIDForeign key referencing user(id).
nameVARCHARName of the application.
client_idVARCHARClient ID for authentication.
client_secretVARCHARSecret key for authentication.
created_atTIMESTAMPTimestamp when the record was created.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: user_id references user(id)

auth_refresh_token​

Column NameDatatypeDescription
valueVARCHARPrimary key. Refresh token value.
session_idVARCHARID of the session associated with the token.
revokedBOOLEANIndicates whether the token has been revoked.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (value)
  • Unique Constraint: (session_id, value)

auth_user​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the auth user.
user_idUUIDForeign key referencing user(id).
auth_user_idVARCHARID of the authenticated user.
auth_providerENUMAuthentication provider used.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: user_id references user(id)
  • Unique Constraint: (auth_user_id, auth_provider)

dataplane​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the dataplane.
dataplane_group_idUUIDForeign key referencing dataplane_group(id).
nameVARCHARName of the dataplane.
enabledBOOLEANIndicates if the dataplane is enabled.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
updated_byUUIDForeign key referencing user(id).
tombstoneBOOLEANIndicates if the record is deleted.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: dataplane_group_id references dataplane_group(id)
  • Foreign Key: updated_by references user(id)
  • Unique Constraint: (dataplane_group_id, name)

dataplane_group​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the group.
organization_idUUIDForeign key referencing organization(id).
nameVARCHARName of the dataplane group.
enabledBOOLEANIndicates if the group is enabled.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
updated_byUUIDForeign key referencing user(id).
tombstoneBOOLEANIndicates if the record is deleted.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: organization_id references organization(id)
  • Foreign Key: updated_by references user(id)
  • Unique Constraint: (organization_id, name)

organization​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the organization.
nameVARCHARName of the organization.
user_idUUIDForeign key referencing user(id).
emailVARCHARContact email for the organization.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
tombstoneBOOLEANIndicates if the organization is deleted.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: user_id references user(id)

organization_email_domain​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the record.
organization_idUUIDForeign key referencing organization(id).
email_domainVARCHAREmail domain associated with the organization.
created_atTIMESTAMPTimestamp when the record was created.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: organization_id references organization(id)
  • Unique Constraint: (organization_id, email_domain)
  • Index: organization_email_domain_organization_id_idx on (organization_id)

organization_payment_config​

Column NameDatatypeDescription
organization_idUUIDPrimary key. Unique identifier for the organization payment configuration.
payment_provider_idVARCHARPayment provider ID.
payment_statusENUMStatus of the organization's payment.
grace_period_end_atTIMESTAMPEnd timestamp for the grace period.
usage_category_overrideENUMOverride for usage category.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
subscription_statusENUMStatus of the organization's subscription.

Indexes and Constraints​

  • Primary Key: (organization_id)
  • Unique Constraint: (payment_provider_id)
  • Foreign Key: organization_id references organization(id)
  • Index: organization_payment_config_payment_status_idx on (payment_status)
  • Index: organization_payment_config_payment_provider_id_idx on (payment_provider_id)

permission​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the permission.
user_idUUIDForeign key referencing user(id).
workspace_idUUIDForeign key referencing workspace(id).
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
organization_idUUIDForeign key referencing organization(id).
permission_typeENUMType of permission assigned.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: user_id references user(id)
  • Foreign Key: workspace_id references workspace(id)
  • Foreign Key: organization_id references organization(id)
  • Unique Constraint: (user_id, organization_id)
  • Unique Constraint: (user_id, workspace_id)
  • Index: permission_organization_id_idx on (organization_id)
  • Index: permission_workspace_id_idx on (workspace_id)

scoped_configuration​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the scoped configuration.
keyVARCHARConfiguration key.
resource_typeENUMType of resource associated with the configuration.
resource_idUUIDIdentifier of the associated resource.
scope_typeENUMType of scope (e.g., workspace, organization).
scope_idUUIDIdentifier for the scope of the configuration.
valueVARCHARValue of the configuration.
descriptionTEXTDescription of the configuration setting.
reference_urlVARCHARURL reference for more information.
origin_typeENUMType of origin for the configuration setting.
originVARCHARSource of the configuration setting.
expires_atDATEExpiration date of the configuration.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (id)
  • Unique Constraint: (key, resource_type, resource_id, scope_type, scope_id)

secret_persistence_config​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for secret persistence configuration.
scope_idUUIDIdentifier for the scope of the secret.
scope_typeENUMScope type (organization, workspace, etc.).
secret_persistence_config_coordinateVARCHARCoordinate for secret persistence configuration.
secret_persistence_typeENUMType of secret persistence method.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (id)
  • Unique Constraint: (scope_id, scope_type)

sso_config​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the SSO configuration.
organization_idUUIDForeign key referencing organization(id).
keycloak_realmVARCHARKeycloak realm associated with the organization.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: organization_id references organization(id)
  • Unique Constraint: (keycloak_realm)
  • Unique Constraint: (organization_id)
  • Index: sso_config_keycloak_realm_idx on (keycloak_realm)
  • Index: sso_config_organization_id_idx on (organization_id)

user​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the user.
nameVARCHARName of the user.
default_workspace_idUUIDForeign key referencing workspace(id).
statusENUMStatus of the user account.
company_nameVARCHARName of the company associated with the user.
emailVARCHAREmail address of the user.
newsBOOLEANWhether the user subscribes to newsletters.
ui_metadataJSONBUI metadata associated with the user.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: default_workspace_id references workspace(id)
  • Unique Constraint: (email)
  • Index: user_email_idx on (email)
  • Unique Index: user_email_unique_key on lower(email)

user_invitation​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the invitation.
invite_codeVARCHARUnique code for the invitation.
inviter_user_idUUIDForeign key referencing user(id).
invited_emailVARCHAREmail of the invited user.
permission_typeENUMType of permission granted to the invited user.
statusENUMStatus of the invitation (pending, accepted, etc.).
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
scope_idUUIDScope ID for the invitation.
scope_typeENUMType of scope (organization, workspace, etc.).
accepted_by_user_idUUIDForeign key referencing user(id).
expires_atTIMESTAMPExpiration timestamp of the invitation.

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: inviter_user_id references user(id)
  • Foreign Key: accepted_by_user_id references user(id)
  • Unique Constraint: (invite_code)
  • Index: user_invitation_invite_code_idx on (invite_code)
  • Index: user_invitation_invited_email_idx on (invited_email)
  • Index: user_invitation_scope_id_index on (scope_id)
  • Index: user_invitation_scope_type_and_scope_id_index on (scope_type, scope_id)
  • Index: user_invitation_accepted_by_user_id_index on (accepted_by_user_id)
  • Index: user_invitation_expires_at_index on (expires_at)

workspace​

Column NameDatatypeDescription
idUUIDPrimary key. Unique identifier for the workspace.
customer_idUUIDCustomer associated with the workspace.
nameVARCHARName of the workspace.
slugVARCHARSlug identifier for the workspace.
emailVARCHARContact email for the workspace.
initial_setup_completeBOOLEANWhether the initial setup is complete.
anonymous_data_collectionBOOLEANWhether anonymous data collection is enabled.
send_newsletterBOOLEANWhether the user is subscribed to newsletters.
send_security_updatesBOOLEANWhether security updates are sent.
display_setup_wizardBOOLEANWhether the setup wizard should be displayed.
tombstoneBOOLEANWhether the workspace is deleted.
notificationsJSONBNotification settings.
first_sync_completeBOOLEANWhether the first sync has completed.
feedback_completeBOOLEANWhether feedback collection is completed.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.
geographyENUMGeography associated with the workspace.
webhook_operation_configsJSONBWebhook operation configurations.
notification_settingsJSONBNotification settings for the workspace.
organization_idUUIDForeign key referencing organization(id).

Indexes and Constraints​

  • Primary Key: (id)
  • Foreign Key: organization_id references organization(id)

workspace_service_account​

Column NameDatatypeDescription
workspace_idUUIDForeign key referencing workspace(id).
service_account_idVARCHARService account ID.
service_account_emailVARCHAREmail associated with the service account.
json_credentialJSONBJSON blob storing credentials.
hmac_keyJSONBJSON blob storing HMAC keys.
created_atTIMESTAMPTimestamp when the record was created.
updated_atTIMESTAMPTimestamp when the record was last modified.

Indexes and Constraints​

  • Primary Key: (workspace_id, service_account_id)
  • Foreign Key: workspace_id references workspace(id)