
---
apiVersion: dbaoperator.app-sre.redhat.com/v1alpha1
kind: DatabaseMigration
metadata:
  name: c156deb8845d
spec:
  migrationContainerSpec:
    command:
    - /quay-registry/quay-entrypoint.sh
    - migrate
    - c156deb8845d
    image: quay.io/quay/quay
    name: c156deb8845d
  previous: null
  schemaHints:
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: accesstokenkind
  - columns: []
    indexName: accesstokenkind_name
    indexType: unique
    operation: createIndex
    table: accesstokenkind
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: buildtriggerservice
  - columns: []
    indexName: buildtriggerservice_name
    indexType: unique
    operation: createIndex
    table: buildtriggerservice
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: externalnotificationevent
  - columns: []
    indexName: externalnotificationevent_name
    indexType: unique
    operation: createIndex
    table: externalnotificationevent
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: externalnotificationmethod
  - columns: []
    indexName: externalnotificationmethod_name
    indexType: unique
    operation: createIndex
    table: externalnotificationmethod
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: checksum
      nullable: true
    - name: image_size
      nullable: true
    - name: uncompressed_size
      nullable: true
    - name: uploading
      nullable: true
    - name: cas_path
      nullable: false
    - name: content_checksum
      nullable: true
    operation: createTable
    table: imagestorage
  - columns: []
    indexName: imagestorage_content_checksum
    indexType: index
    operation: createIndex
    table: imagestorage
  - columns: []
    indexName: imagestorage_uuid
    indexType: unique
    operation: createIndex
    table: imagestorage
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: imagestoragelocation
  - columns: []
    indexName: imagestoragelocation_name
    indexType: unique
    operation: createIndex
    table: imagestoragelocation
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: imagestoragesignaturekind
  - columns: []
    indexName: imagestoragesignaturekind_name
    indexType: unique
    operation: createIndex
    table: imagestoragesignaturekind
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: imagestoragetransformation
  - columns: []
    indexName: imagestoragetransformation_name
    indexType: unique
    operation: createIndex
    table: imagestoragetransformation
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    - name: mutable
      nullable: false
    operation: createTable
    table: labelsourcetype
  - columns: []
    indexName: labelsourcetype_name
    indexType: unique
    operation: createIndex
    table: labelsourcetype
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: logentrykind
  - columns: []
    indexName: logentrykind_name
    indexType: unique
    operation: createIndex
    table: logentrykind
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: loginservice
  - columns: []
    indexName: loginservice_name
    indexType: unique
    operation: createIndex
    table: loginservice
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: mediatype
  - columns: []
    indexName: mediatype_name
    indexType: unique
    operation: createIndex
    table: mediatype
  - columns:
    - name: id
      nullable: false
    - name: content
      nullable: false
    - name: uuid
      nullable: true
    operation: createTable
    table: messages
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: notificationkind
  - columns: []
    indexName: notificationkind_name
    indexType: unique
    operation: createIndex
    table: notificationkind
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: quayregion
  - columns: []
    indexName: quayregion_name
    indexType: unique
    operation: createIndex
    table: quayregion
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: quayservice
  - columns: []
    indexName: quayservice_name
    indexType: unique
    operation: createIndex
    table: quayservice
  - columns:
    - name: id
      nullable: false
    - name: queue_name
      nullable: false
    - name: body
      nullable: false
    - name: available_after
      nullable: false
    - name: available
      nullable: false
    - name: processing_expires
      nullable: true
    - name: retries_remaining
      nullable: false
    operation: createTable
    table: queueitem
  - columns: []
    indexName: queueitem_available
    indexType: index
    operation: createIndex
    table: queueitem
  - columns: []
    indexName: queueitem_available_after
    indexType: index
    operation: createIndex
    table: queueitem
  - columns: []
    indexName: queueitem_processing_expires
    indexType: index
    operation: createIndex
    table: queueitem
  - columns: []
    indexName: queueitem_queue_name
    indexType: index
    operation: createIndex
    table: queueitem
  - columns: []
    indexName: queueitem_retries_remaining
    indexType: index
    operation: createIndex
    table: queueitem
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: role
  - columns: []
    indexName: role_name
    indexType: unique
    operation: createIndex
    table: role
  - columns:
    - name: id
      nullable: false
    - name: approver_id
      nullable: true
    - name: approval_type
      nullable: false
    - name: approved_date
      nullable: false
    - name: notes
      nullable: false
    operation: createTable
    table: servicekeyapproval
  - columns: []
    indexName: servicekeyapproval_approval_type
    indexType: index
    operation: createIndex
    table: servicekeyapproval
  - columns: []
    indexName: servicekeyapproval_approver_id
    indexType: index
    operation: createIndex
    table: servicekeyapproval
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: teamrole
  - columns: []
    indexName: teamrole_name
    indexType: index
    operation: createIndex
    table: teamrole
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: true
    - name: username
      nullable: false
    - name: password_hash
      nullable: true
    - name: email
      nullable: false
    - name: verified
      nullable: false
    - name: stripe_id
      nullable: true
    - name: organization
      nullable: false
    - name: robot
      nullable: false
    - name: invoice_email
      nullable: false
    - name: invalid_login_attempts
      nullable: false
    - name: last_invalid_login
      nullable: false
    - name: removed_tag_expiration_s
      nullable: false
    - name: enabled
      nullable: false
    - name: invoice_email_address
      nullable: true
    operation: createTable
    table: user
  - columns: []
    indexName: user_email
    indexType: unique
    operation: createIndex
    table: user
  - columns: []
    indexName: user_invoice_email_address
    indexType: index
    operation: createIndex
    table: user
  - columns: []
    indexName: user_organization
    indexType: index
    operation: createIndex
    table: user
  - columns: []
    indexName: user_robot
    indexType: index
    operation: createIndex
    table: user
  - columns: []
    indexName: user_stripe_id
    indexType: index
    operation: createIndex
    table: user
  - columns: []
    indexName: user_username
    indexType: unique
    operation: createIndex
    table: user
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    operation: createTable
    table: visibility
  - columns: []
    indexName: visibility_name
    indexType: unique
    operation: createIndex
    table: visibility
  - columns:
    - name: id
      nullable: false
    - name: code
      nullable: false
    - name: user_id
      nullable: false
    - name: pw_reset
      nullable: false
    - name: new_email
      nullable: true
    - name: email_confirm
      nullable: false
    - name: created
      nullable: false
    operation: createTable
    table: emailconfirmation
  - columns: []
    indexName: emailconfirmation_code
    indexType: unique
    operation: createIndex
    table: emailconfirmation
  - columns: []
    indexName: emailconfirmation_user_id
    indexType: index
    operation: createIndex
    table: emailconfirmation
  - columns:
    - name: id
      nullable: false
    - name: user_id
      nullable: false
    - name: service_id
      nullable: false
    - name: service_ident
      nullable: false
    - name: metadata_json
      nullable: false
    operation: createTable
    table: federatedlogin
  - columns: []
    indexName: federatedlogin_service_id
    indexType: index
    operation: createIndex
    table: federatedlogin
  - columns: []
    indexName: federatedlogin_service_id_service_ident
    indexType: unique
    operation: createIndex
    table: federatedlogin
  - columns: []
    indexName: federatedlogin_service_id_user_id
    indexType: unique
    operation: createIndex
    table: federatedlogin
  - columns: []
    indexName: federatedlogin_user_id
    indexType: index
    operation: createIndex
    table: federatedlogin
  - columns:
    - name: id
      nullable: false
    - name: storage_id
      nullable: false
    - name: location_id
      nullable: false
    operation: createTable
    table: imagestorageplacement
  - columns: []
    indexName: imagestorageplacement_location_id
    indexType: index
    operation: createIndex
    table: imagestorageplacement
  - columns: []
    indexName: imagestorageplacement_storage_id
    indexType: index
    operation: createIndex
    table: imagestorageplacement
  - columns: []
    indexName: imagestorageplacement_storage_id_location_id
    indexType: unique
    operation: createIndex
    table: imagestorageplacement
  - columns:
    - name: id
      nullable: false
    - name: storage_id
      nullable: false
    - name: kind_id
      nullable: false
    - name: signature
      nullable: true
    - name: uploading
      nullable: true
    operation: createTable
    table: imagestoragesignature
  - columns: []
    indexName: imagestoragesignature_kind_id
    indexType: index
    operation: createIndex
    table: imagestoragesignature
  - columns: []
    indexName: imagestoragesignature_kind_id_storage_id
    indexType: unique
    operation: createIndex
    table: imagestoragesignature
  - columns: []
    indexName: imagestoragesignature_storage_id
    indexType: index
    operation: createIndex
    table: imagestoragesignature
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: key
      nullable: false
    - name: value
      nullable: false
    - name: media_type_id
      nullable: false
    - name: source_type_id
      nullable: false
    operation: createTable
    table: label
  - columns: []
    indexName: label_key
    indexType: index
    operation: createIndex
    table: label
  - columns: []
    indexName: label_media_type_id
    indexType: index
    operation: createIndex
    table: label
  - columns: []
    indexName: label_source_type_id
    indexType: index
    operation: createIndex
    table: label
  - columns: []
    indexName: label_uuid
    indexType: unique
    operation: createIndex
    table: label
  - columns:
    - name: id
      nullable: false
    - name: kind_id
      nullable: false
    - name: account_id
      nullable: false
    - name: performer_id
      nullable: true
    - name: repository_id
      nullable: true
    - name: datetime
      nullable: false
    - name: ip
      nullable: true
    - name: metadata_json
      nullable: false
    operation: createTable
    table: logentry
  - columns: []
    indexName: logentry_account_id
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_account_id_datetime
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_datetime
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_kind_id
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_performer_id
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_performer_id_datetime
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_repository_id
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_repository_id_datetime
    indexType: index
    operation: createIndex
    table: logentry
  - columns: []
    indexName: logentry_repository_id_datetime_kind_id
    indexType: index
    operation: createIndex
    table: logentry
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: kind_id
      nullable: false
    - name: target_id
      nullable: false
    - name: metadata_json
      nullable: false
    - name: created
      nullable: false
    - name: dismissed
      nullable: false
    - name: lookup_path
      nullable: true
    operation: createTable
    table: notification
  - columns: []
    indexName: notification_created
    indexType: index
    operation: createIndex
    table: notification
  - columns: []
    indexName: notification_kind_id
    indexType: index
    operation: createIndex
    table: notification
  - columns: []
    indexName: notification_lookup_path
    indexType: index
    operation: createIndex
    table: notification
  - columns: []
    indexName: notification_target_id
    indexType: index
    operation: createIndex
    table: notification
  - columns: []
    indexName: notification_uuid
    indexType: index
    operation: createIndex
    table: notification
  - columns:
    - name: id
      nullable: false
    - name: client_id
      nullable: false
    - name: client_secret
      nullable: false
    - name: redirect_uri
      nullable: false
    - name: application_uri
      nullable: false
    - name: organization_id
      nullable: false
    - name: name
      nullable: false
    - name: description
      nullable: false
    - name: gravatar_email
      nullable: true
    operation: createTable
    table: oauthapplication
  - columns: []
    indexName: oauthapplication_client_id
    indexType: index
    operation: createIndex
    table: oauthapplication
  - columns: []
    indexName: oauthapplication_organization_id
    indexType: index
    operation: createIndex
    table: oauthapplication
  - columns:
    - name: id
      nullable: false
    - name: service_id
      nullable: false
    - name: version
      nullable: false
    - name: region_id
      nullable: false
    - name: reverted
      nullable: false
    - name: created
      nullable: false
    operation: createTable
    table: quayrelease
  - columns: []
    indexName: quayrelease_created
    indexType: index
    operation: createIndex
    table: quayrelease
  - columns: []
    indexName: quayrelease_region_id
    indexType: index
    operation: createIndex
    table: quayrelease
  - columns: []
    indexName: quayrelease_service_id
    indexType: index
    operation: createIndex
    table: quayrelease
  - columns: []
    indexName: quayrelease_service_id_region_id_created
    indexType: index
    operation: createIndex
    table: quayrelease
  - columns: []
    indexName: quayrelease_service_id_version_region_id
    indexType: unique
    operation: createIndex
    table: quayrelease
  - columns:
    - name: id
      nullable: false
    - name: namespace_user_id
      nullable: true
    - name: name
      nullable: false
    - name: visibility_id
      nullable: false
    - name: description
      nullable: true
    - name: badge_token
      nullable: false
    operation: createTable
    table: repository
  - columns: []
    indexName: repository_namespace_user_id
    indexType: index
    operation: createIndex
    table: repository
  - columns: []
    indexName: repository_namespace_user_id_name
    indexType: unique
    operation: createIndex
    table: repository
  - columns: []
    indexName: repository_visibility_id
    indexType: index
    operation: createIndex
    table: repository
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    - name: kid
      nullable: false
    - name: service
      nullable: false
    - name: jwk
      nullable: false
    - name: metadata
      nullable: false
    - name: created_date
      nullable: false
    - name: expiration_date
      nullable: true
    - name: rotation_duration
      nullable: true
    - name: approval_id
      nullable: true
    operation: createTable
    table: servicekey
  - columns: []
    indexName: servicekey_approval_id
    indexType: index
    operation: createIndex
    table: servicekey
  - columns: []
    indexName: servicekey_kid
    indexType: unique
    operation: createIndex
    table: servicekey
  - columns: []
    indexName: servicekey_service
    indexType: index
    operation: createIndex
    table: servicekey
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    - name: organization_id
      nullable: false
    - name: role_id
      nullable: false
    - name: description
      nullable: false
    operation: createTable
    table: team
  - columns: []
    indexName: team_name
    indexType: index
    operation: createIndex
    table: team
  - columns: []
    indexName: team_name_organization_id
    indexType: unique
    operation: createIndex
    table: team
  - columns: []
    indexName: team_organization_id
    indexType: index
    operation: createIndex
    table: team
  - columns: []
    indexName: team_role_id
    indexType: index
    operation: createIndex
    table: team
  - columns:
    - name: id
      nullable: false
    - name: storage_id
      nullable: false
    - name: piece_length
      nullable: false
    - name: pieces
      nullable: false
    operation: createTable
    table: torrentinfo
  - columns: []
    indexName: torrentinfo_storage_id
    indexType: index
    operation: createIndex
    table: torrentinfo
  - columns: []
    indexName: torrentinfo_storage_id_piece_length
    indexType: unique
    operation: createIndex
    table: torrentinfo
  - columns:
    - name: id
      nullable: false
    - name: user_id
      nullable: false
    - name: location_id
      nullable: false
    operation: createTable
    table: userregion
  - columns: []
    indexName: userregion_location_id
    indexType: index
    operation: createIndex
    table: userregion
  - columns: []
    indexName: userregion_user_id
    indexType: index
    operation: createIndex
    table: userregion
  - columns:
    - name: id
      nullable: false
    - name: friendly_name
      nullable: true
    - name: code
      nullable: false
    - name: repository_id
      nullable: false
    - name: created
      nullable: false
    - name: role_id
      nullable: false
    - name: temporary
      nullable: false
    - name: kind_id
      nullable: true
    operation: createTable
    table: accesstoken
  - columns: []
    indexName: accesstoken_code
    indexType: unique
    operation: createIndex
    table: accesstoken
  - columns: []
    indexName: accesstoken_kind_id
    indexType: index
    operation: createIndex
    table: accesstoken
  - columns: []
    indexName: accesstoken_repository_id
    indexType: index
    operation: createIndex
    table: accesstoken
  - columns: []
    indexName: accesstoken_role_id
    indexType: index
    operation: createIndex
    table: accesstoken
  - columns:
    - name: id
      nullable: false
    - name: repository_id
      nullable: false
    - name: uuid
      nullable: false
    - name: byte_count
      nullable: false
    - name: sha_state
      nullable: true
    - name: location_id
      nullable: false
    - name: storage_metadata
      nullable: true
    - name: chunk_count
      nullable: false
    - name: uncompressed_byte_count
      nullable: true
    - name: created
      nullable: false
    - name: piece_sha_state
      nullable: true
    - name: piece_hashes
      nullable: true
    operation: createTable
    table: blobupload
  - columns: []
    indexName: blobupload_created
    indexType: index
    operation: createIndex
    table: blobupload
  - columns: []
    indexName: blobupload_location_id
    indexType: index
    operation: createIndex
    table: blobupload
  - columns: []
    indexName: blobupload_repository_id
    indexType: index
    operation: createIndex
    table: blobupload
  - columns: []
    indexName: blobupload_repository_id_uuid
    indexType: unique
    operation: createIndex
    table: blobupload
  - columns: []
    indexName: blobupload_uuid
    indexType: unique
    operation: createIndex
    table: blobupload
  - columns:
    - name: id
      nullable: false
    - name: docker_image_id
      nullable: false
    - name: repository_id
      nullable: false
    - name: ancestors
      nullable: true
    - name: storage_id
      nullable: true
    - name: created
      nullable: true
    - name: comment
      nullable: true
    - name: command
      nullable: true
    - name: aggregate_size
      nullable: true
    - name: v1_json_metadata
      nullable: true
    - name: v1_checksum
      nullable: true
    - name: security_indexed
      nullable: false
    - name: security_indexed_engine
      nullable: false
    - name: parent_id
      nullable: true
    operation: createTable
    table: image
  - columns: []
    indexName: image_ancestors
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_docker_image_id
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_parent_id
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_repository_id
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_repository_id_docker_image_id
    indexType: unique
    operation: createIndex
    table: image
  - columns: []
    indexName: image_security_indexed
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_security_indexed_engine
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_security_indexed_engine_security_indexed
    indexType: index
    operation: createIndex
    table: image
  - columns: []
    indexName: image_storage_id
    indexType: index
    operation: createIndex
    table: image
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: application_id
      nullable: false
    - name: authorized_user_id
      nullable: false
    - name: scope
      nullable: false
    - name: access_token
      nullable: false
    - name: token_type
      nullable: false
    - name: expires_at
      nullable: false
    - name: refresh_token
      nullable: true
    - name: data
      nullable: false
    operation: createTable
    table: oauthaccesstoken
  - columns: []
    indexName: oauthaccesstoken_access_token
    indexType: index
    operation: createIndex
    table: oauthaccesstoken
  - columns: []
    indexName: oauthaccesstoken_application_id
    indexType: index
    operation: createIndex
    table: oauthaccesstoken
  - columns: []
    indexName: oauthaccesstoken_authorized_user_id
    indexType: index
    operation: createIndex
    table: oauthaccesstoken
  - columns: []
    indexName: oauthaccesstoken_refresh_token
    indexType: index
    operation: createIndex
    table: oauthaccesstoken
  - columns: []
    indexName: oauthaccesstoken_uuid
    indexType: index
    operation: createIndex
    table: oauthaccesstoken
  - columns:
    - name: id
      nullable: false
    - name: application_id
      nullable: false
    - name: code
      nullable: false
    - name: scope
      nullable: false
    - name: data
      nullable: false
    operation: createTable
    table: oauthauthorizationcode
  - columns: []
    indexName: oauthauthorizationcode_application_id
    indexType: index
    operation: createIndex
    table: oauthauthorizationcode
  - columns: []
    indexName: oauthauthorizationcode_code
    indexType: index
    operation: createIndex
    table: oauthauthorizationcode
  - columns:
    - name: id
      nullable: false
    - name: org_id
      nullable: false
    - name: uuid
      nullable: false
    - name: activating_user_id
      nullable: true
    - name: delegate_user_id
      nullable: true
    - name: delegate_team_id
      nullable: true
    - name: role_id
      nullable: false
    operation: createTable
    table: permissionprototype
  - columns: []
    indexName: permissionprototype_activating_user_id
    indexType: index
    operation: createIndex
    table: permissionprototype
  - columns: []
    indexName: permissionprototype_delegate_team_id
    indexType: index
    operation: createIndex
    table: permissionprototype
  - columns: []
    indexName: permissionprototype_delegate_user_id
    indexType: index
    operation: createIndex
    table: permissionprototype
  - columns: []
    indexName: permissionprototype_org_id
    indexType: index
    operation: createIndex
    table: permissionprototype
  - columns: []
    indexName: permissionprototype_org_id_activating_user_id
    indexType: index
    operation: createIndex
    table: permissionprototype
  - columns: []
    indexName: permissionprototype_role_id
    indexType: index
    operation: createIndex
    table: permissionprototype
  - columns:
    - name: id
      nullable: false
    - name: repository_id
      nullable: false
    - name: count
      nullable: false
    - name: date
      nullable: false
    operation: createTable
    table: repositoryactioncount
  - columns: []
    indexName: repositoryactioncount_date
    indexType: index
    operation: createIndex
    table: repositoryactioncount
  - columns: []
    indexName: repositoryactioncount_repository_id
    indexType: index
    operation: createIndex
    table: repositoryactioncount
  - columns: []
    indexName: repositoryactioncount_repository_id_date
    indexType: unique
    operation: createIndex
    table: repositoryactioncount
  - columns:
    - name: id
      nullable: false
    - name: repository_id
      nullable: false
    - name: email
      nullable: false
    - name: code
      nullable: false
    - name: confirmed
      nullable: false
    operation: createTable
    table: repositoryauthorizedemail
  - columns: []
    indexName: repositoryauthorizedemail_code
    indexType: unique
    operation: createIndex
    table: repositoryauthorizedemail
  - columns: []
    indexName: repositoryauthorizedemail_email_repository_id
    indexType: unique
    operation: createIndex
    table: repositoryauthorizedemail
  - columns: []
    indexName: repositoryauthorizedemail_repository_id
    indexType: index
    operation: createIndex
    table: repositoryauthorizedemail
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: repository_id
      nullable: false
    - name: event_id
      nullable: false
    - name: method_id
      nullable: false
    - name: title
      nullable: true
    - name: config_json
      nullable: false
    - name: event_config_json
      nullable: false
    operation: createTable
    table: repositorynotification
  - columns: []
    indexName: repositorynotification_event_id
    indexType: index
    operation: createIndex
    table: repositorynotification
  - columns: []
    indexName: repositorynotification_method_id
    indexType: index
    operation: createIndex
    table: repositorynotification
  - columns: []
    indexName: repositorynotification_repository_id
    indexType: index
    operation: createIndex
    table: repositorynotification
  - columns: []
    indexName: repositorynotification_uuid
    indexType: index
    operation: createIndex
    table: repositorynotification
  - columns:
    - name: id
      nullable: false
    - name: team_id
      nullable: true
    - name: user_id
      nullable: true
    - name: repository_id
      nullable: false
    - name: role_id
      nullable: false
    operation: createTable
    table: repositorypermission
  - columns: []
    indexName: repositorypermission_repository_id
    indexType: index
    operation: createIndex
    table: repositorypermission
  - columns: []
    indexName: repositorypermission_role_id
    indexType: index
    operation: createIndex
    table: repositorypermission
  - columns: []
    indexName: repositorypermission_team_id
    indexType: index
    operation: createIndex
    table: repositorypermission
  - columns: []
    indexName: repositorypermission_team_id_repository_id
    indexType: unique
    operation: createIndex
    table: repositorypermission
  - columns: []
    indexName: repositorypermission_user_id
    indexType: index
    operation: createIndex
    table: repositorypermission
  - columns: []
    indexName: repositorypermission_user_id_repository_id
    indexType: unique
    operation: createIndex
    table: repositorypermission
  - columns:
    - name: id
      nullable: false
    - name: user_id
      nullable: false
    - name: repository_id
      nullable: false
    - name: created
      nullable: false
    operation: createTable
    table: star
  - columns: []
    indexName: star_repository_id
    indexType: index
    operation: createIndex
    table: star
  - columns: []
    indexName: star_user_id
    indexType: index
    operation: createIndex
    table: star
  - columns: []
    indexName: star_user_id_repository_id
    indexType: unique
    operation: createIndex
    table: star
  - columns:
    - name: id
      nullable: false
    - name: user_id
      nullable: false
    - name: team_id
      nullable: false
    operation: createTable
    table: teammember
  - columns: []
    indexName: teammember_team_id
    indexType: index
    operation: createIndex
    table: teammember
  - columns: []
    indexName: teammember_user_id
    indexType: index
    operation: createIndex
    table: teammember
  - columns: []
    indexName: teammember_user_id_team_id
    indexType: unique
    operation: createIndex
    table: teammember
  - columns:
    - name: id
      nullable: false
    - name: user_id
      nullable: true
    - name: email
      nullable: true
    - name: team_id
      nullable: false
    - name: inviter_id
      nullable: false
    - name: invite_token
      nullable: false
    operation: createTable
    table: teammemberinvite
  - columns: []
    indexName: teammemberinvite_inviter_id
    indexType: index
    operation: createIndex
    table: teammemberinvite
  - columns: []
    indexName: teammemberinvite_team_id
    indexType: index
    operation: createIndex
    table: teammemberinvite
  - columns: []
    indexName: teammemberinvite_user_id
    indexType: index
    operation: createIndex
    table: teammemberinvite
  - columns:
    - name: id
      nullable: false
    - name: source_image_id
      nullable: false
    - name: derivative_id
      nullable: false
    - name: transformation_id
      nullable: false
    - name: uniqueness_hash
      nullable: true
    operation: createTable
    table: derivedstorageforimage
  - columns: []
    indexName: derivedstorageforimage_derivative_id
    indexType: index
    operation: createIndex
    table: derivedstorageforimage
  - columns: []
    indexName: derivedstorageforimage_source_image_id
    indexType: index
    operation: createIndex
    table: derivedstorageforimage
  - columns: []
    indexName: uniqueness_index
    indexType: unique
    operation: createIndex
    table: derivedstorageforimage
  - columns: []
    indexName: derivedstorageforimage_transformation_id
    indexType: index
    operation: createIndex
    table: derivedstorageforimage
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: service_id
      nullable: false
    - name: repository_id
      nullable: false
    - name: connected_user_id
      nullable: false
    - name: auth_token
      nullable: true
    - name: private_key
      nullable: true
    - name: config
      nullable: false
    - name: write_token_id
      nullable: true
    - name: pull_robot_id
      nullable: true
    operation: createTable
    table: repositorybuildtrigger
  - columns: []
    indexName: repositorybuildtrigger_connected_user_id
    indexType: index
    operation: createIndex
    table: repositorybuildtrigger
  - columns: []
    indexName: repositorybuildtrigger_pull_robot_id
    indexType: index
    operation: createIndex
    table: repositorybuildtrigger
  - columns: []
    indexName: repositorybuildtrigger_repository_id
    indexType: index
    operation: createIndex
    table: repositorybuildtrigger
  - columns: []
    indexName: repositorybuildtrigger_service_id
    indexType: index
    operation: createIndex
    table: repositorybuildtrigger
  - columns: []
    indexName: repositorybuildtrigger_write_token_id
    indexType: index
    operation: createIndex
    table: repositorybuildtrigger
  - columns:
    - name: id
      nullable: false
    - name: name
      nullable: false
    - name: image_id
      nullable: false
    - name: repository_id
      nullable: false
    - name: lifetime_start_ts
      nullable: false
    - name: lifetime_end_ts
      nullable: true
    - name: hidden
      nullable: false
    - name: reversion
      nullable: false
    operation: createTable
    table: repositorytag
  - columns: []
    indexName: repositorytag_image_id
    indexType: index
    operation: createIndex
    table: repositorytag
  - columns: []
    indexName: repositorytag_lifetime_end_ts
    indexType: index
    operation: createIndex
    table: repositorytag
  - columns: []
    indexName: repositorytag_repository_id
    indexType: index
    operation: createIndex
    table: repositorytag
  - columns: []
    indexName: repositorytag_repository_id_name
    indexType: index
    operation: createIndex
    table: repositorytag
  - columns: []
    indexName: repositorytag_repository_id_name_lifetime_end_ts
    indexType: unique
    operation: createIndex
    table: repositorytag
  - columns:
    - name: id
      nullable: false
    - name: uuid
      nullable: false
    - name: repository_id
      nullable: false
    - name: access_token_id
      nullable: false
    - name: resource_key
      nullable: true
    - name: job_config
      nullable: false
    - name: phase
      nullable: false
    - name: started
      nullable: false
    - name: display_name
      nullable: false
    - name: trigger_id
      nullable: true
    - name: pull_robot_id
      nullable: true
    - name: logs_archived
      nullable: false
    - name: queue_id
      nullable: true
    operation: createTable
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_access_token_id
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_pull_robot_id
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_queue_id
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_repository_id
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_repository_id_started_phase
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_resource_key
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_started
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_started_logs_archived_phase
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_trigger_id
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns: []
    indexName: repositorybuild_uuid
    indexType: index
    operation: createIndex
    table: repositorybuild
  - columns:
    - name: id
      nullable: false
    - name: tag_id
      nullable: false
    - name: digest
      nullable: false
    - name: json_data
      nullable: false
    operation: createTable
    table: tagmanifest
  - columns: []
    indexName: tagmanifest_digest
    indexType: index
    operation: createIndex
    table: tagmanifest
  - columns: []
    indexName: tagmanifest_tag_id
    indexType: unique
    operation: createIndex
    table: tagmanifest
  - columns:
    - name: id
      nullable: false
    - name: repository_id
      nullable: false
    - name: annotated_id
      nullable: false
    - name: label_id
      nullable: false
    operation: createTable
    table: tagmanifestlabel
  - columns: []
    indexName: tagmanifestlabel_annotated_id
    indexType: index
    operation: createIndex
    table: tagmanifestlabel
  - columns: []
    indexName: tagmanifestlabel_annotated_id_label_id
    indexType: unique
    operation: createIndex
    table: tagmanifestlabel
  - columns: []
    indexName: tagmanifestlabel_label_id
    indexType: index
    operation: createIndex
    table: tagmanifestlabel
  - columns: []
    indexName: tagmanifestlabel_repository_id
    indexType: index
    operation: createIndex
    table: tagmanifestlabel
